Klasse ObjectDoubleMutablePair<T>

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

public class ObjectDoubleMutablePair<T> extends Object implements ObjectDoublePair<T>
Mutable Pair Implementation that
  • Konstruktordetails

    • ObjectDoubleMutablePair

      public ObjectDoubleMutablePair()
      Default Constructor
    • ObjectDoubleMutablePair

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

    • setKey

      public ObjectDoublePair<T> setKey(T key)
      Beschreibung aus Schnittstelle kopiert: ObjectDoublePair
      Sets the Key of the Pair.
      Angegeben von:
      setKey in Schnittstelle ObjectDoublePair<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 ObjectDoublePair<T>
      Gibt zurück:
      the Key of the Pair
    • setDoubleValue

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

      public double getDoubleValue()
      Angegeben von:
      getDoubleValue in Schnittstelle ObjectDoublePair<T>
      Gibt zurück:
      the Value of the Pair
    • set

      public ObjectDoublePair<T> set(T key, double value)
      Beschreibung aus Schnittstelle kopiert: ObjectDoublePair
      Sets key and value of the Pair
      Angegeben von:
      set in Schnittstelle ObjectDoublePair<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 ObjectDoublePair<T> shallowCopy()
      Beschreibung aus Schnittstelle kopiert: ObjectDoublePair
      Clones the Pair if it is mutable.
      Angegeben von:
      shallowCopy in Schnittstelle ObjectDoublePair<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