Klasse FloatFloatMutablePair

java.lang.Object
speiger.src.collections.floats.misc.pairs.impl.FloatFloatMutablePair
Alle implementierten Schnittstellen:
FloatFloatPair

public class FloatFloatMutablePair extends Object implements FloatFloatPair
Mutable Pair Implementation that
  • Konstruktordetails

    • FloatFloatMutablePair

      public FloatFloatMutablePair()
      Default Constructor
    • FloatFloatMutablePair

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

    • setFloatKey

      public FloatFloatPair setFloatKey(float key)
      Beschreibung aus Schnittstelle kopiert: FloatFloatPair
      Sets the Key of the Pair.
      Angegeben von:
      setFloatKey in Schnittstelle FloatFloatPair
      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 FloatFloatPair
      Gibt zurück:
      the Key of the Pair
    • setFloatValue

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

      public float getFloatValue()
      Angegeben von:
      getFloatValue in Schnittstelle FloatFloatPair
      Gibt zurück:
      the Value of the Pair
    • set

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