|
JBoss Marshalling 1.2.1.GA | |||||||||
| 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 serialiable 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. |
|
A |
getA()
Get the first value. |
|
B |
getB()
Get the second value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 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.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||