Interface OpSequence<T>

Type Parameters:
T - The type of element which is to be sequenced
All Superinterfaces:
LongFunction<T>
All Known Implementing Classes:
Sequence

public interface OpSequence<T> extends LongFunction<T>
An OpSequence provides fast access to a set of operations in a specific order.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the list of individual operations which could be returned by LongFunction.apply(long).
    int[]
    Get the integer sequence that is used to index into the operations.
    <U> OpSequence<U>
    transform(Function<T,U> func)
    Map this OpSequence to another type of OpSequence.

    Methods inherited from interface java.util.function.LongFunction

    apply
  • Method Details

    • getOps

      List<T> getOps()
      Get the list of individual operations which could be returned by LongFunction.apply(long).
      Returns:
      A List of T
    • getSequence

      int[] getSequence()
      Get the integer sequence that is used to index into the operations.
      Returns:
      an offset pointer array in int[] form
    • transform

      <U> OpSequence<U> transform(Function<T,U> func)
      Map this OpSequence to another type of OpSequence.
      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