Klasse CharLongImmutablePair

java.lang.Object
speiger.src.collections.chars.misc.pairs.impl.CharLongImmutablePair
Alle implementierten Schnittstellen:
CharLongPair

public class CharLongImmutablePair extends Object implements CharLongPair
Mutable Pair Implementation that
  • Konstruktordetails

    • CharLongImmutablePair

      public CharLongImmutablePair()
      Default Constructor
    • CharLongImmutablePair

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

    • setCharKey

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

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

      public long getLongValue()
      Angegeben von:
      getLongValue in Schnittstelle CharLongPair
      Gibt zurück:
      the Value of the Pair
    • set

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