Class ConcatSequencer<T>
- java.lang.Object
-
- io.engineblock.activityapi.planning.ConcatSequencer<T>
-
- Type Parameters:
T- The type of op or element being sequenced
- All Implemented Interfaces:
ElementSequencer<T>
public class ConcatSequencer<T> extends java.lang.Object implements ElementSequencer<T>
This sequencer just repeats a number of elements, one element after another.
-
-
Constructor Summary
Constructors Constructor Description ConcatSequencer()
-
Method Summary
Modifier and Type Method Description int[]seqIndexByRatioFunc(java.util.List<T> elems, java.util.function.ToLongFunction<T> ratioFunc)int[]seqIndexesByRatios(java.util.List<T> elems, java.util.List<java.lang.Long> ratios)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.engineblock.activityapi.planning.ElementSequencer
seqElementsByRatioFunc, sequenceSummary
-
-
-
-
Method Detail
-
seqIndexByRatioFunc
public int[] seqIndexByRatioFunc(java.util.List<T> elems, java.util.function.ToLongFunction<T> ratioFunc)
- Specified by:
seqIndexByRatioFuncin interfaceElementSequencer<T>
-
seqIndexesByRatios
public int[] seqIndexesByRatios(java.util.List<T> elems, java.util.List<java.lang.Long> ratios)
- Specified by:
seqIndexesByRatiosin interfaceElementSequencer<T>
-
-