Class CollectionUtils.Tuple<K,V>

java.lang.Object
ai.devtools.utils.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
    final K
    The k value of the tuple
    final 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.
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • k

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

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

    • 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.