Klasse FloatObjectImmutablePair<V>

java.lang.Object
speiger.src.collections.floats.misc.pairs.impl.FloatObjectImmutablePair<V>
Typparameter:
V - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
FloatObjectPair<V>

public class FloatObjectImmutablePair<V> extends Object implements FloatObjectPair<V>
Mutable Pair Implementation that
  • Konstruktordetails

    • FloatObjectImmutablePair

      public FloatObjectImmutablePair()
      Default Constructor
    • FloatObjectImmutablePair

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

    • setFloatKey

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

      public FloatObjectPair<V> setValue(V value)
      Beschreibung aus Schnittstelle kopiert: FloatObjectPair
      Sets the Value of the Pair.
      Angegeben von:
      setValue in Schnittstelle FloatObjectPair<V>
      Parameter:
      value - the value that should be set.
      Gibt zurück:
      self or a new Pair instance with the new value.
    • getValue

      public V getValue()
      Angegeben von:
      getValue in Schnittstelle FloatObjectPair<V>
      Gibt zurück:
      the Value of the Pair
    • set

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