Klasse DoubleCharMutablePair

java.lang.Object
speiger.src.collections.doubles.misc.pairs.impl.DoubleCharMutablePair
Alle implementierten Schnittstellen:
DoubleCharPair

public class DoubleCharMutablePair extends Object implements DoubleCharPair
Mutable Pair Implementation that
  • Konstruktordetails

    • DoubleCharMutablePair

      public DoubleCharMutablePair()
      Default Constructor
    • DoubleCharMutablePair

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

    • setDoubleKey

      public DoubleCharPair setDoubleKey(double key)
      Beschreibung aus Schnittstelle kopiert: DoubleCharPair
      Sets the Key of the Pair.
      Angegeben von:
      setDoubleKey in Schnittstelle DoubleCharPair
      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 DoubleCharPair
      Gibt zurück:
      the Key of the Pair
    • setCharValue

      public DoubleCharPair setCharValue(char value)
      Beschreibung aus Schnittstelle kopiert: DoubleCharPair
      Sets the Value of the Pair.
      Angegeben von:
      setCharValue in Schnittstelle DoubleCharPair
      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 DoubleCharPair
      Gibt zurück:
      the Value of the Pair
    • set

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