|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.lang3.Pair<L,R>
public final class Pair<L,R>
A basic immutable Object pair.
#ThreadSafe# if the objects are threadsafe
Field Summary | |
---|---|
L |
left
Left object |
R |
right
Right object |
Constructor Summary | |
---|---|
Pair(L left,
R right)
Create a new Pair instance. |
Method Summary | ||
---|---|---|
boolean |
equals(Object obj)
|
|
int |
hashCode()
|
|
static
|
of(L left,
R right)
Static creation method for a Pair |
|
String |
toString()
Returns a String representation of the Pair in the form: (L,R) |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final L left
public final R right
Constructor Detail |
---|
public Pair(L left, R right)
left
- right
- Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static <L,R> Pair<L,R> of(L left, R right)
L
- R
- left
- right
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |