Klasse LongCharMutablePair

java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongCharMutablePair
Alle implementierten Schnittstellen:
LongCharPair

public class LongCharMutablePair extends Object implements LongCharPair
Mutable Pair Implementation that
  • Konstruktordetails

    • LongCharMutablePair

      public LongCharMutablePair()
      Default Constructor
    • LongCharMutablePair

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

    • setLongKey

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

      public long getLongKey()
      Angegeben von:
      getLongKey in Schnittstelle LongCharPair
      Gibt zurück:
      the Key of the Pair
    • setCharValue

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

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