Class ContainedPair<K,V>

java.lang.Object
net.ME1312.Galaxi.Library.Container.Value<V>
net.ME1312.Galaxi.Library.Container.Pair<K,V>
net.ME1312.Galaxi.Library.Container.ContainedPair<K,V>
Type Parameters:
K - Key Type
V - Value Type

public class ContainedPair<K,V> extends Pair<K,V>
Key-Value Pair Container Class
  • Field Details

    • key

      public K key
    • value

      public V value
  • Constructor Details

    • ContainedPair

      public ContainedPair()
      Creates the Container
    • ContainedPair

      public ContainedPair(K key, V value)
      Creates the Container
      Parameters:
      key - Key
      value - Value
  • Method Details

    • key

      public K key()
      Description copied from class: Pair
      Get the Key
      Specified by:
      key in class Pair<K,V>
      Returns:
      Key
    • key

      public K key(K key)
      Description copied from class: Pair
      Set the Key
      Specified by:
      key in class Pair<K,V>
      Parameters:
      key - Key
    • value

      public V value()
      Description copied from class: Value
      Get the Value
      Specified by:
      value in class Value<V>
      Returns:
      Value
    • value

      public V value(V value)
      Description copied from class: Value
      Set the Value
      Specified by:
      value in class Value<V>
      Parameters:
      value - Value