V - the type of elements maintained by this Collectionpublic class LongObjectMutablePair<V> extends java.lang.Object implements LongObjectPair<V>
EMPTY| Constructor and Description |
|---|
LongObjectMutablePair()
Default Constructor
|
LongObjectMutablePair(long key,
V value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getLongKey() |
V |
getValue() |
int |
hashCode() |
LongObjectPair<V> |
set(long key,
V value)
Sets key and value of the Pair
|
LongObjectPair<V> |
setLongKey(long key)
Sets the Key of the Pair.
|
LongObjectPair<V> |
setValue(V value)
Sets the Value of the Pair.
|
LongObjectPair<V> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongObjectMutablePair()
public LongObjectMutablePair(long key,
V value)
key - the key of the Pairvalue - the value of the Pairpublic LongObjectPair<V> setLongKey(long key)
LongObjectPairsetLongKey in interface LongObjectPair<V>key - the key that should be set.public long getLongKey()
getLongKey in interface LongObjectPair<V>public LongObjectPair<V> setValue(V value)
LongObjectPairsetValue in interface LongObjectPair<V>value - the value that should be set.public V getValue()
getValue in interface LongObjectPair<V>public LongObjectPair<V> set(long key, V value)
LongObjectPairset in interface LongObjectPair<V>key - the key that should be set.value - the value that should be set.public LongObjectPair<V> shallowCopy()
LongObjectPairshallowCopy in interface LongObjectPair<V>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object