Klasse ObjectBooleanMutablePair<T>

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

public class ObjectBooleanMutablePair<T> extends Object implements ObjectBooleanPair<T>
Mutable Pair Implementation that
  • Konstruktordetails

    • ObjectBooleanMutablePair

      public ObjectBooleanMutablePair()
      Default Constructor
    • ObjectBooleanMutablePair

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

    • setKey

      public ObjectBooleanPair<T> setKey(T key)
      Beschreibung aus Schnittstelle kopiert: ObjectBooleanPair
      Sets the Key of the Pair.
      Angegeben von:
      setKey in Schnittstelle ObjectBooleanPair<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 ObjectBooleanPair<T>
      Gibt zurück:
      the Key of the Pair
    • setBooleanValue

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

      public boolean getBooleanValue()
      Angegeben von:
      getBooleanValue in Schnittstelle ObjectBooleanPair<T>
      Gibt zurück:
      the Value of the Pair
    • set

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