Klasse FloatIntImmutablePair

java.lang.Object
speiger.src.collections.floats.misc.pairs.impl.FloatIntImmutablePair
Alle implementierten Schnittstellen:
FloatIntPair

public class FloatIntImmutablePair extends Object implements FloatIntPair
Mutable Pair Implementation that
  • Konstruktordetails

    • FloatIntImmutablePair

      public FloatIntImmutablePair()
      Default Constructor
    • FloatIntImmutablePair

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

    • setFloatKey

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

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

      public int getIntValue()
      Angegeben von:
      getIntValue in Schnittstelle FloatIntPair
      Gibt zurück:
      the Value of the Pair
    • set

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