L - the type parameterR - the type parameterpublic final class ImmutablePair<L,R> extends Pair<L,R>
| Modifier and Type | Method and Description |
|---|---|
static <L,R> ImmutablePair<L,R> |
copyOf(Map.Entry<L,R> source)
Copy of.
|
boolean |
equals(Object obj) |
L |
getLeft()
Gets left.
|
R |
getRight()
Gets right.
|
int |
hashCode()
Generates hash code conforming with
Map.Entry.hashCode() specification. |
static <L,R> ImmutablePair<L,R> |
of(L left,
R right)
Of immutable pair.
|
R |
setValue(R value) |
getKey, getValue, immutable, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic static <L,R> ImmutablePair<L,R> of(L left, R right)
L - the type parameterR - the type parameterleft - the leftright - the rightpublic static <L,R> ImmutablePair<L,R> copyOf(Map.Entry<L,R> source)
L - the type parameterR - the type parametersource - the sourcepublic int hashCode()
PairMap.Entry.hashCode() specification.Copyright © 2014 Boleslav Bobcik - Auderis. All rights reserved.