Klasse LongLongImmutablePair

java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongLongImmutablePair
Alle implementierten Schnittstellen:
LongLongPair

public class LongLongImmutablePair extends Object implements LongLongPair
Mutable Pair Implementation that
  • Konstruktordetails

    • LongLongImmutablePair

      public LongLongImmutablePair()
      Default Constructor
    • LongLongImmutablePair

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

    • setLongKey

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

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

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