Klasse DoubleLongMutablePair

java.lang.Object
speiger.src.collections.doubles.misc.pairs.impl.DoubleLongMutablePair
Alle implementierten Schnittstellen:
DoubleLongPair

public class DoubleLongMutablePair extends Object implements DoubleLongPair
Mutable Pair Implementation that
  • Konstruktordetails

    • DoubleLongMutablePair

      public DoubleLongMutablePair()
      Default Constructor
    • DoubleLongMutablePair

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

    • setDoubleKey

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

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

      public long getLongValue()
      Angegeben von:
      getLongValue in Schnittstelle DoubleLongPair
      Gibt zurück:
      the Value of the Pair
    • set

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