Klasse CharBooleanImmutablePair

java.lang.Object
speiger.src.collections.chars.misc.pairs.impl.CharBooleanImmutablePair
Alle implementierten Schnittstellen:
CharBooleanPair

public class CharBooleanImmutablePair extends Object implements CharBooleanPair
Mutable Pair Implementation that
  • Konstruktordetails

    • CharBooleanImmutablePair

      public CharBooleanImmutablePair()
      Default Constructor
    • CharBooleanImmutablePair

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

    • setCharKey

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

      public char getCharKey()
      Angegeben von:
      getCharKey in Schnittstelle CharBooleanPair
      Gibt zurück:
      the Key of the Pair
    • setBooleanValue

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

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