Klasse CharCharMutablePair

java.lang.Object
speiger.src.collections.chars.misc.pairs.impl.CharCharMutablePair
Alle implementierten Schnittstellen:
CharCharPair

public class CharCharMutablePair extends Object implements CharCharPair
Mutable Pair Implementation that
  • Konstruktordetails

    • CharCharMutablePair

      public CharCharMutablePair()
      Default Constructor
    • CharCharMutablePair

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

    • setCharKey

      public CharCharPair setCharKey(char key)
      Beschreibung aus Schnittstelle kopiert: CharCharPair
      Sets the Key of the Pair.
      Angegeben von:
      setCharKey in Schnittstelle CharCharPair
      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 CharCharPair
      Gibt zurück:
      the Key of the Pair
    • setCharValue

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

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