Klasse FloatDoubleMutablePair

java.lang.Object
speiger.src.collections.floats.misc.pairs.impl.FloatDoubleMutablePair
Alle implementierten Schnittstellen:
FloatDoublePair

public class FloatDoubleMutablePair extends Object implements FloatDoublePair
Mutable Pair Implementation that
  • Konstruktordetails

    • FloatDoubleMutablePair

      public FloatDoubleMutablePair()
      Default Constructor
    • FloatDoubleMutablePair

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

    • setFloatKey

      public FloatDoublePair setFloatKey(float key)
      Beschreibung aus Schnittstelle kopiert: FloatDoublePair
      Sets the Key of the Pair.
      Angegeben von:
      setFloatKey in Schnittstelle FloatDoublePair
      Parameter:
      key - the key that should be set.
      Gibt zurück:
      self or a new Pair instance with the new key.
    • getFloatKey

      public float getFloatKey()
      Angegeben von:
      getFloatKey in Schnittstelle FloatDoublePair
      Gibt zurück:
      the Key of the Pair
    • setDoubleValue

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

      public double getDoubleValue()
      Angegeben von:
      getDoubleValue in Schnittstelle FloatDoublePair
      Gibt zurück:
      the Value of the Pair
    • set

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