Class BaseSequenceEntry
- java.lang.Object
-
- com.vladsch.flexmark.experimental.util.sequence.managed.BaseSequenceEntry
-
public class BaseSequenceEntry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BaseSequenceEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
boolean
testEquals(BasedSequence baseSeq, java.lang.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
-
-
-
Method Detail
-
testEquals
public boolean testEquals(@NotNull BasedSequence baseSeq, @NotNull java.lang.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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-