Class BaseSequenceEntry
java.lang.Object
com.vladsch.flexmark.experimental.util.sequence.managed.BaseSequenceEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
testEquals
(@NotNull BasedSequence baseSeq, @NotNull Object o, int[] equalsCall) Compare object to equality of entry's base sequence NOTE: if not char sequence or base of this entry's base sequence then will return false, so do not expect to pass a new instance of char[] and to get true for equivalent CharSubSequence
-
Field Details
-
quickEquals
-
hash
private int hash
-
-
Constructor Details
-
BaseSequenceEntry
public BaseSequenceEntry()
-
-
Method Details
-
testEquals
public boolean testEquals(@NotNull @NotNull BasedSequence baseSeq, @NotNull @NotNull Object o, int[] equalsCall) Compare object to equality of entry's base sequence NOTE: if not char sequence or base of this entry's base sequence then will return false, so do not expect to pass a new instance of char[] and to get true for equivalent CharSubSequence- Parameters:
baseSeq
- base sequenceo
- object to compareequalsCall
- 1 element array where to return type of equals test done equality type used, 0 - quick class and/or length, 1 - hash, 2 - quick lookup, 3 - string content comparison, 4 - char sequence comparison- Returns:
- true if object equivalent to this entry's base sequence, false otherwise
-
equals
-
hashCode
public int hashCode()
-