Klasse DoubleObjectMutablePair<V>

java.lang.Object
speiger.src.collections.doubles.misc.pairs.impl.DoubleObjectMutablePair<V>
Typparameter:
V - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
DoubleObjectPair<V>

public class DoubleObjectMutablePair<V> extends Object implements DoubleObjectPair<V>
Mutable Pair Implementation that
  • Konstruktordetails

    • DoubleObjectMutablePair

      public DoubleObjectMutablePair()
      Default Constructor
    • DoubleObjectMutablePair

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

    • setDoubleKey

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

      public double getDoubleKey()
      Angegeben von:
      getDoubleKey in Schnittstelle DoubleObjectPair<V>
      Gibt zurück:
      the Key of the Pair
    • setValue

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

      public V getValue()
      Angegeben von:
      getValue in Schnittstelle DoubleObjectPair<V>
      Gibt zurück:
      the Value of the Pair
    • set

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