Class BaseSequenceEntry
- java.lang.Object
-
- com.vladsch.flexmark.experimental.util.sequence.managed.BaseSequenceEntry
-
public class BaseSequenceEntry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private inthashprivate @NotNull java.util.WeakHashMap<java.lang.Object,java.lang.Boolean>quickEquals
-
Constructor Summary
Constructors Constructor Description BaseSequenceEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()booleantestEquals(@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
-
-
-
Method Detail
-
testEquals
public boolean testEquals(@NotNull @NotNull BasedSequence baseSeq, @NotNull @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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-