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