Class BaseSequenceEntry


  • public class BaseSequenceEntry
    extends java.lang.Object
    • 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseSequenceEntry

        public BaseSequenceEntry()
    • 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 sequence
        o - object to compare
        equalsCall - 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object