Class Tuple2<U,​V>

  • Type Parameters:
    U -
    V -

    public class Tuple2<U,​V>
    extends Object
    A class of pairs, similar to scala's Tuple2.
    Author:
    Antonin Delpeuch
    • Constructor Detail

      • Tuple2

        public Tuple2​(U left,
                      V right)
    • Method Detail

      • getKey

        public U getKey()
      • getValue

        public V getValue()
      • of

        public static <U,​V> Tuple2<U,​V> of​(U key,
                                                       V value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object