Class UndirectedPairGenerator<E>

  • All Implemented Interfaces:
    PairGenerator<E>

    public class UndirectedPairGenerator<E>
    extends java.lang.Object
    implements PairGenerator<E>
    Takes a list and generates pairs among its elements. It tries to distribute the pairs equally as in as least same pairs as possible. Pair(a,b) counts as equal to Pair(b,a).
    • 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

      • UndirectedPairGenerator

        public UndirectedPairGenerator​(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>