Interface OpSequence<T>
- Type Parameters:
T- The type of element which is to be sequenced
- All Superinterfaces:
LongFunction<T>
- All Known Implementing Classes:
Sequence
An OpSequence provides fast access to a set of operations in a specific
order.
-
Method Summary
Modifier and TypeMethodDescriptiongetOps()Get the list of individual operations which could be returned byLongFunction.apply(long).int[]Get the integer sequence that is used to index into the operations.<U> OpSequence<U> Map this OpSequence to another type of OpSequence.Methods inherited from interface java.util.function.LongFunction
apply
-
Method Details
-
getOps
Get the list of individual operations which could be returned byLongFunction.apply(long).- Returns:
- A
Listof 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
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
-