T - the keyType of elements maintained by this Collectionpublic class ObjectLongImmutablePair<T> extends java.lang.Object implements ObjectLongPair<T>
EMPTY| Constructor and Description |
|---|
ObjectLongImmutablePair()
Default Constructor
|
ObjectLongImmutablePair(T key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
getKey() |
long |
getLongValue() |
int |
hashCode() |
ObjectLongPair<T> |
set(T key,
long value)
Sets key and value of the Pair
|
ObjectLongPair<T> |
setKey(T key)
Sets the Key of the Pair.
|
ObjectLongPair<T> |
setLongValue(long value)
Sets the Value of the Pair.
|
ObjectLongPair<T> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ObjectLongImmutablePair()
public ObjectLongImmutablePair(T key, long value)
key - the key of the Pairvalue - the value of the Pairpublic ObjectLongPair<T> setKey(T key)
ObjectLongPairsetKey in interface ObjectLongPair<T>key - the key that should be set.public T getKey()
getKey in interface ObjectLongPair<T>public ObjectLongPair<T> setLongValue(long value)
ObjectLongPairsetLongValue in interface ObjectLongPair<T>value - the value that should be set.public long getLongValue()
getLongValue in interface ObjectLongPair<T>public ObjectLongPair<T> set(T key, long value)
ObjectLongPairset in interface ObjectLongPair<T>key - the key that should be set.value - the value that should be set.public ObjectLongPair<T> shallowCopy()
ObjectLongPairshallowCopy in interface ObjectLongPair<T>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