Class RandomConnectedPairGenerator<E>

  • All Implemented Interfaces:
    PairGenerator<E>

    public class RandomConnectedPairGenerator<E>
    extends Object
    implements PairGenerator<E>
    Pairs elements randomly but not the same element to itself.
    • Constructor Detail

      • RandomConnectedPairGenerator

        public RandomConnectedPairGenerator​(List<E> elements)
    • Method Detail

      • next

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