Class 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
    • Constructor Detail

      • ConcatSequencer

        public ConcatSequencer()
    • Method Detail

      • seqIndexByRatioFunc

        public int[] seqIndexByRatioFunc​(java.util.List<T> elems,
                                         java.util.function.ToLongFunction<T> ratioFunc)
        Specified by:
        seqIndexByRatioFunc in interface ElementSequencer<T>
      • seqIndexesByRatios

        public int[] seqIndexesByRatios​(java.util.List<T> elems,
                                        java.util.List<java.lang.Long> ratios)
        Specified by:
        seqIndexesByRatios in interface ElementSequencer<T>