Class Pair<U extends Serializable,​V extends Serializable>

    • Constructor Detail

      • Pair

        public Pair​(U u,
                    V v)
        Creates a new pair.
        Parameters:
        u - the value of the first component
        v - the value of the second component
    • Method Detail

      • getFirst

        public U getFirst()
        Gets the first component of the pair.
        Returns:
        the first component of the pair
      • getSecond

        public V getSecond()
        Gets the second component of the pair.
        Returns:
        the second component of the pair