Class LinkedPairGenerator<E>

  • All Implemented Interfaces:
    PairGenerator<E>

    public class LinkedPairGenerator<E>
    extends java.lang.Object
    implements PairGenerator<E>
    Creates Pairs from the given list where each element is linked to the next one in the list. The end of the list is connected to the beginning.
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkedPairGenerator​(java.util.List<E> elements)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.commons.lang3.tuple.Pair<E,​E> next()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkedPairGenerator

        public LinkedPairGenerator​(java.util.List<E> elements)
    • Method Detail

      • next

        public org.apache.commons.lang3.tuple.Pair<E,​E> next()
        Specified by:
        next in interface PairGenerator<E>