Class Pair<F,​S>


  • public class Pair<F,​S>
    extends Object
    Simple Pair class.
    • Constructor Detail

      • Pair

        public Pair​(F first,
                    S second)
    • Method Detail

      • getFirst

        public F getFirst()
        Returns:
        the first
      • getSecond

        public S getSecond()
        Returns:
        the second
      • getKey

        public F getKey()
        Returns:
        the key
      • getValue

        public S getValue()
        Returns:
        the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object