|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.marshalling.Pair<A,B>
A - the first value typeB - the second value type@Externalize(value=Pair.Externalizer.class) public final class Pair<A,B>

A serializable pair of values. There is also a specified externalizer as well, to support more efficient I/O.
| Nested Class Summary | |
|---|---|
static class |
Pair.Externalizer
An externalizer for Pair instances. |
| Constructor Summary | |
|---|---|
Pair(A a,
B b)
Create a new instance. |
|
| Method Summary | ||
|---|---|---|
static
|
create(A a,
B b)
Create a new instance. |
|
boolean |
equals(Object other)
Determine if this pair equals another. |
|
boolean |
equals(Pair<?,?> other)
Determine if this pair equals another. |
|
A |
getA()
Get the first value. |
|
B |
getB()
Get the second value. |
|
int |
hashCode()
Return the combined hash code of the two argument objects. |
|
String |
toString()
Get a string representation of this pair. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(A a,
B b)
a - the first valueb - the second value| Method Detail |
|---|
public A getA()
public B getB()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectother - the other pair
true if they are equal, false otherwisepublic boolean equals(Pair<?,?> other)
other - the other pair
true if they are equal, false otherwisepublic String toString()
toString in class Object
public static <A,B> Pair<A,B> create(A a,
B b)
A - the first value typeB - the second value typea - the first valueb - the second value
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||