Class Pair<E1,​E2>

  • Type Parameters:
    E1 - Generics indicating the type information for the first one in the pair.
    E2 - Generics indicating the type information for the second one in the pair.

    public class Pair<E1,​E2>
    extends java.lang.Object
    An utility class for stores any information that needs to exist as a pair.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(E1 first, E2 second)  
    • Constructor Detail

      • Pair

        public Pair​(E1 first,
                    E2 second)
    • Method Detail

      • first

        public E1 first()
      • setFirst

        public void setFirst​(E1 first)
      • second

        public E2 second()
      • setSecond

        public void setSecond​(E2 second)