Class CollectionUtils.Tuple<K,​V>

  • Type Parameters:
    K - The type of Object allowed for the first Object in the tuple.
    V - The type of Object allowed for the second Object in the tuple.
    Enclosing class:
    CollectionUtils

    public static class CollectionUtils.Tuple<K,​V>
    extends Object
    Simple Tuple implementation. A Tuple is an immutable two-pair of values. It may consist of any two Objects, which may or may not be in of the same type.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      K k
      The k value of the tuple
      V v
      The v value of the tuple
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple​(K k, V v)
      Constructor, creates a new Tuple from the specified values.
    • Field Detail

      • k

        public final K k
        The k value of the tuple
      • v

        public final V v
        The v value of the tuple
    • Constructor Detail

      • Tuple

        public Tuple​(K k,
                     V v)
        Constructor, creates a new Tuple from the specified values.
        Parameters:
        k - The first entry in the Tuple.
        v - The second entry in the Tuple.