Class SequencePlanner.Sequence<T>

    • Method Summary

      Modifier and Type Method Description
      T get​(long selector)
      Get the next operation for the given long value.
      java.util.List<T> getOps()
      Get the list of individual operations which could be returned by OpSequence.get(long).
      int[] getSequence()
      Get the integer sequence that is used to index into the operations.
      SequencerType getSequencerType()  
      <U> SequencePlanner.Sequence<U> transform​(java.util.function.Function<T,​U> func)
      Map this OpSequence to another type of OpSequence.
      • Methods inherited from class java.lang.Object

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

      • get

        public T get​(long selector)
        Description copied from interface: OpSequence
        Get the next operation for the given long value. This is simply the offset indicated by the offset sequence array at a modulo position.
        Specified by:
        get in interface OpSequence<T>
        Parameters:
        selector - the long value that determines the next op
        Returns:
        An op of type T
      • getOps

        public java.util.List<T> getOps()
        Description copied from interface: OpSequence
        Get the list of individual operations which could be returned by OpSequence.get(long).
        Specified by:
        getOps in interface OpSequence<T>
        Returns:
        A List of T
      • getSequence

        public int[] getSequence()
        Description copied from interface: OpSequence
        Get the integer sequence that is used to index into the operations.
        Specified by:
        getSequence in interface OpSequence<T>
        Returns:
        an offset pointer array in int[] form
      • transform

        public <U> SequencePlanner.Sequence<U> transform​(java.util.function.Function<T,​U> func)
        Description copied from interface: OpSequence
        Map this OpSequence to another type of OpSequence.
        Specified by:
        transform in interface OpSequence<T>
        Type Parameters:
        U - The target type of the transformation.
        Parameters:
        func - The transformation function from this to another type
        Returns:
        A new OpSequence of type U