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:SequenceComparatorCompare two items to determine if they are equivalent. It is permissible to compare sequenceawith itself (by passingaagain in positionb).- Specified by:
equalsin classSequenceComparator<RawText>- Parameters:
a- the first sequence.ai- item ofaito compare.b- the second sequence.bi- item ofbito compare.- Returns:
- true if the two items are identical according to this function's equivalence rule.
-