Klasse ObjectFloatMutablePair<T>

java.lang.Object
speiger.src.collections.objects.misc.pairs.impl.ObjectFloatMutablePair<T>
Typparameter:
T - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
ObjectFloatPair<T>

public class ObjectFloatMutablePair<T> extends Object implements ObjectFloatPair<T>
Mutable Pair Implementation that
  • Konstruktordetails

    • ObjectFloatMutablePair

      public ObjectFloatMutablePair()
      Default Constructor
    • ObjectFloatMutablePair

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

    • setKey

      public ObjectFloatPair<T> setKey(T key)
      Beschreibung aus Schnittstelle kopiert: ObjectFloatPair
      Sets the Key of the Pair.
      Angegeben von:
      setKey in Schnittstelle ObjectFloatPair<T>
      Parameter:
      key - the key that should be set.
      Gibt zurück:
      self or a new Pair instance with the new key.
    • getKey

      public T getKey()
      Angegeben von:
      getKey in Schnittstelle ObjectFloatPair<T>
      Gibt zurück:
      the Key of the Pair
    • setFloatValue

      public ObjectFloatPair<T> setFloatValue(float value)
      Beschreibung aus Schnittstelle kopiert: ObjectFloatPair
      Sets the Value of the Pair.
      Angegeben von:
      setFloatValue in Schnittstelle ObjectFloatPair<T>
      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 ObjectFloatPair<T>
      Gibt zurück:
      the Value of the Pair
    • set

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