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
Base class for any hashCode function to be tested.
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.diff.RawTextComparator
DEFAULT, WS_IGNORE_ALL, WS_IGNORE_CHANGE, WS_IGNORE_LEADING, WS_IGNORE_TRAILING
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.diff.RawTextComparator
hash, hashRegion, reduceCommonStartEnd
-
Field Details
-
name
String name
-
-
Constructor Details
-
Hash
private Hash()
-
-
Method Details
-
equals
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.
-