Class Pair<K,V>

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

public abstract class Pair<K,V> extends Value<V>
Key-Value Pair Container
  • Constructor Details

    • Pair

      public Pair()
  • Method Details

    • key

      public abstract K key()
      Get the Key
      Returns:
      Key
    • key

      public abstract K key(K key)
      Set the Key
      Parameters:
      key - Key
    • toString

      public String toString()
      Overrides:
      toString in class Value<V>
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Value<V>