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.Stringname-
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 privateHash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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: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.
-
-