Klasse DoubleShortMutablePair

java.lang.Object
speiger.src.collections.doubles.misc.pairs.impl.DoubleShortMutablePair
Alle implementierten Schnittstellen:
DoubleShortPair

public class DoubleShortMutablePair extends Object implements DoubleShortPair
Mutable Pair Implementation that
  • Konstruktordetails

    • DoubleShortMutablePair

      public DoubleShortMutablePair()
      Default Constructor
    • DoubleShortMutablePair

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

    • setDoubleKey

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

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

      public short getShortValue()
      Angegeben von:
      getShortValue in Schnittstelle DoubleShortPair
      Gibt zurück:
      the Value of the Pair
    • set

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