Module logicng

Class ComparablePair<A extends Comparable<A>,​B extends Comparable<B>>

  • Type Parameters:
    A - the type parameter of the first entry
    B - the type parameter of the second entry
    All Implemented Interfaces:
    Comparable<ComparablePair<A,​B>>

    public final class ComparablePair<A extends Comparable<A>,​B extends Comparable<B>>
    extends Pair<A,​B>
    implements Comparable<ComparablePair<A,​B>>
    Data structure for a comparable pair.
    Since:
    1.2
    Version:
    1.2
    • Constructor Detail

      • ComparablePair

        public ComparablePair​(A a,
                              B b)
        Constructs a new comparable pair.
        Parameters:
        a - the first entry
        b - the second entry