Klasse ObjectCharMutablePair<T>

java.lang.Object
speiger.src.collections.objects.misc.pairs.impl.ObjectCharMutablePair<T>
Typparameter:
T - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
ObjectCharPair<T>

public class ObjectCharMutablePair<T> extends Object implements ObjectCharPair<T>
Mutable Pair Implementation that
  • Konstruktordetails

    • ObjectCharMutablePair

      public ObjectCharMutablePair()
      Default Constructor
    • ObjectCharMutablePair

      public ObjectCharMutablePair(T key, char value)
      Key/Value Constructur
      Parameter:
      key - the key of the Pair
      value - the value of the Pair
  • Methodendetails

    • setKey

      public ObjectCharPair<T> setKey(T key)
      Beschreibung aus Schnittstelle kopiert: ObjectCharPair
      Sets the Key of the Pair.
      Angegeben von:
      setKey in Schnittstelle ObjectCharPair<T>
      Parameter:
      key - the key that should be set.
      Gibt zurück:
      self or a new Pair instance with the new key.
    • getKey

      public T getKey()
      Angegeben von:
      getKey in Schnittstelle ObjectCharPair<T>
      Gibt zurück:
      the Key of the Pair
    • setCharValue

      public ObjectCharPair<T> setCharValue(char value)
      Beschreibung aus Schnittstelle kopiert: ObjectCharPair
      Sets the Value of the Pair.
      Angegeben von:
      setCharValue in Schnittstelle ObjectCharPair<T>
      Parameter:
      value - the value that should be set.
      Gibt zurück:
      self or a new Pair instance with the new value.
    • getCharValue

      public char getCharValue()
      Angegeben von:
      getCharValue in Schnittstelle ObjectCharPair<T>
      Gibt zurück:
      the Value of the Pair
    • set

      public ObjectCharPair<T> set(T key, char value)
      Beschreibung aus Schnittstelle kopiert: ObjectCharPair
      Sets key and value of the Pair
      Angegeben von:
      set in Schnittstelle ObjectCharPair<T>
      Parameter:
      key - the key that should be set.
      value - the value that should be set.
      Gibt zurück:
      self or a new Pair instance with the new key and value.
    • shallowCopy

      public ObjectCharPair<T> shallowCopy()
      Beschreibung aus Schnittstelle kopiert: ObjectCharPair
      Clones the Pair if it is mutable.
      Angegeben von:
      shallowCopy in Schnittstelle ObjectCharPair<T>
      Gibt zurück:
      a New Mutable Instance if it is mutable
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object