Class Tuple<K,​V>

  • Type Parameters:
    K - key type
    V - value type
    All Implemented Interfaces:
    java.io.Serializable, ITuple<K,​V>
    Direct Known Subclasses:
    IndexedString

    public class Tuple<K,​V>
    extends java.lang.Object
    implements ITuple<K,​V>, java.io.Serializable
    Basic tuple implementation
    See Also:
    Serialized Form
    • Constructor Detail

      • Tuple

        public Tuple()
      • Tuple

        public Tuple​(K key,
                     V value)
    • Method Detail

      • of

        public static <K,​V> Tuple of​(K key,
                                           V value)
      • clone

        public ITuple clone()
        Specified by:
        clone in interface ITuple<K,​V>
        Overrides:
        clone in class java.lang.Object
      • equals

        public boolean equals​(ITuple tuple)
        Specified by:
        equals in interface ITuple<K,​V>
      • getKey

        public K getKey()
        Specified by:
        getKey in interface ITuple<K,​V>
      • setKey

        public void setKey​(K key)
        Specified by:
        setKey in interface ITuple<K,​V>
      • getValue

        public V getValue()
        Specified by:
        getValue in interface ITuple<K,​V>
      • setValue

        public void setValue​(V value)
        Specified by:
        setValue in interface ITuple<K,​V>
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface ITuple<K,​V>
        Overrides:
        toString in class java.lang.Object