L - the type parameterR - the type parameterpublic abstract class Pair<L,R> extends Object implements Map.Entry<L,R>, Serializable
| Constructor and Description |
|---|
Pair() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
L |
getKey() |
abstract L |
getLeft()
Gets left.
|
abstract R |
getRight()
Gets right.
|
R |
getValue() |
int |
hashCode()
Generates hash code conforming with
Map.Entry.hashCode() specification. |
static <L,R> Pair<L,R> |
immutable(L left,
R right)
Immutable pair.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, setValuepublic static <L,R> Pair<L,R> immutable(L left, R right)
L - the type parameterR - the type parameterleft - the leftright - the rightpublic abstract L getLeft()
public abstract R getRight()
public boolean equals(Object obj)
public int hashCode()
Map.Entry.hashCode() specification.Copyright © 2014 Boleslav Bobcik - Auderis. All rights reserved.