Package org.eclipse.jgit.pgm.debug
Class TextHashFunctions.Hash
- java.lang.Object
-
- org.eclipse.jgit.diff.SequenceComparator<RawText>
-
- org.eclipse.jgit.diff.RawTextComparator
-
- org.eclipse.jgit.pgm.debug.TextHashFunctions.Hash
-
- Enclosing class:
- TextHashFunctions
private abstract static class TextHashFunctions.Hash extends RawTextComparator
Base class for any hashCode function to be tested.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
name
-
Fields inherited from class org.eclipse.jgit.diff.RawTextComparator
DEFAULT, WS_IGNORE_ALL, WS_IGNORE_CHANGE, WS_IGNORE_LEADING, WS_IGNORE_TRAILING
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Hash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(RawText a, int ai, RawText b, int bi)
Compare two items to determine if they are equivalent.-
Methods inherited from class org.eclipse.jgit.diff.RawTextComparator
hash, hashRegion, reduceCommonStartEnd
-
-
-
-
Method Detail
-
equals
public boolean equals(RawText a, int ai, RawText b, int bi)
Description copied from class:SequenceComparator
Compare two items to determine if they are equivalent. It is permissible to compare sequencea
with itself (by passinga
again in positionb
).- Specified by:
equals
in classSequenceComparator<RawText>
- Parameters:
a
- the first sequence.ai
- item ofai
to compare.b
- the second sequence.bi
- item ofbi
to compare.- Returns:
- true if the two items are identical according to this function's equivalence rule.
-
-