Class Pair<A,​B>


  • public abstract class Pair<A,​B>
    extends Object
    • Constructor Detail

      • Pair

        public Pair()
    • Method Detail

      • fst

        public abstract A fst()
      • snd

        public abstract B snd()
      • of

        public static <A,​B> Pair<A,​B> of​(A fst,
                                                     B snd)
      • allPairs

        public static <A,​B> Set<Pair<A,​B>> allPairs​(Set<A> fstSet,
                                                                Set<B> sndSet)
      • swap

        public Pair<B,​A> swap()