Class BaseSequenceManager


  • public class BaseSequenceManager
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> BasedSequence getBaseSequence​(T object, int[] callTypes, java.util.function.Function<T,​BasedSequence> factory)
      Get an equivalent existing based sequence base or a new one created by passed factory
      • Methods inherited from class java.lang.Object

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

      • BaseSequenceManager

        public BaseSequenceManager()
    • Method Detail

      • getBaseSequence

        @NotNull
        public <T> BasedSequence getBaseSequence​(@NotNull
                                                 T object,
                                                 @Nullable
                                                 int[] callTypes,
                                                 @NotNull
                                                 java.util.function.Function<T,​BasedSequence> factory)
        Get an equivalent existing based sequence base or a new one created by passed factory

        NOTE: should only be called by base sequence which are the base for their category: SubSequence implementing managed sequence base

        all others should delegate to these sequences for creating the base

        Type Parameters:
        T - type of base character sequence
        Parameters:
        object - object for the underlying based sequence base
        callTypes - one element array for type of tests done to find result NOTE: 0 if map lookup, 10 - set search, 20 - construct and add to map/set with units digit giving max testEquals call type from all tests done
        factory - factory to create based sequence from the object
        Returns:
        existing equivalent base or newly created base