Klasse BooleanCharMutablePair

java.lang.Object
speiger.src.collections.booleans.misc.pairs.impl.BooleanCharMutablePair
Alle implementierten Schnittstellen:
BooleanCharPair

public class BooleanCharMutablePair extends Object implements BooleanCharPair
Mutable Pair Implementation that
  • Konstruktordetails

    • BooleanCharMutablePair

      public BooleanCharMutablePair()
      Default Constructor
    • BooleanCharMutablePair

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

    • setBooleanKey

      public BooleanCharPair setBooleanKey(boolean key)
      Beschreibung aus Schnittstelle kopiert: BooleanCharPair
      Sets the Key of the Pair.
      Angegeben von:
      setBooleanKey in Schnittstelle BooleanCharPair
      Parameter:
      key - the key that should be set.
      Gibt zurück:
      self or a new Pair instance with the new key.
    • getBooleanKey

      public boolean getBooleanKey()
      Angegeben von:
      getBooleanKey in Schnittstelle BooleanCharPair
      Gibt zurück:
      the Key of the Pair
    • setCharValue

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

      public char getCharValue()
      Angegeben von:
      getCharValue in Schnittstelle BooleanCharPair
      Gibt zurück:
      the Value of the Pair
    • set

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