Klasse DoubleIntMutablePair

java.lang.Object
speiger.src.collections.doubles.misc.pairs.impl.DoubleIntMutablePair
Alle implementierten Schnittstellen:
DoubleIntPair

public class DoubleIntMutablePair extends Object implements DoubleIntPair
Mutable Pair Implementation that
  • Konstruktordetails

    • DoubleIntMutablePair

      public DoubleIntMutablePair()
      Default Constructor
    • DoubleIntMutablePair

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

    • setDoubleKey

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

      public DoubleIntPair setIntValue(int value)
      Beschreibung aus Schnittstelle kopiert: DoubleIntPair
      Sets the Value of the Pair.
      Angegeben von:
      setIntValue in Schnittstelle DoubleIntPair
      Parameter:
      value - the value that should be set.
      Gibt zurück:
      self or a new Pair instance with the new value.
    • getIntValue

      public int getIntValue()
      Angegeben von:
      getIntValue in Schnittstelle DoubleIntPair
      Gibt zurück:
      the Value of the Pair
    • set

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