Class Pair<U,​V>

  • Type Parameters:
    U - type of first value
    V - type of second value
    All Implemented Interfaces:
    Serializable

    public class Pair<U,​V>
    extends Object
    implements Serializable
    A simple utility class combining two values of arbitrary types to one object.
    Author:
    Tilman Neumann
    See Also:
    Serialized Form
    • Constructor Detail

      • Pair

        public Pair​(U u,
                    V v)
    • Method Detail

      • getFirst

        public U getFirst()
      • getSecond

        public V getSecond()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object