Klasse DoubleBooleanMutablePair

java.lang.Object
speiger.src.collections.doubles.misc.pairs.impl.DoubleBooleanMutablePair
Alle implementierten Schnittstellen:
DoubleBooleanPair

public class DoubleBooleanMutablePair extends Object implements DoubleBooleanPair
Mutable Pair Implementation that
  • Konstruktordetails

    • DoubleBooleanMutablePair

      public DoubleBooleanMutablePair()
      Default Constructor
    • DoubleBooleanMutablePair

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

    • setDoubleKey

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

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

      public boolean getBooleanValue()
      Angegeben von:
      getBooleanValue in Schnittstelle DoubleBooleanPair
      Gibt zurück:
      the Value of the Pair
    • set

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