|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.func.Tuple<A,B>
A
- B
- public class Tuple<A,B>
A Tuple holds two values of two different types.
Field Summary | |
---|---|
A |
first
|
B |
second
|
Constructor Summary | |
---|---|
Tuple(A first,
B second)
|
Method Summary | ||
---|---|---|
static
|
create(X first,
Y second)
|
|
boolean |
equals(Object obj)
Compares this Tuple to another object. |
|
protected void |
extendDescription(StringBuilder builder)
Overriden in subclasses to write additional values into the description. |
|
protected boolean |
isMatch(Object other)
The heart of equals(Object) ; the other object is the same class as this object. |
|
String |
toString()
Returns the values of the tuple, separated by commas, enclosed in parenthesis. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final A first
public final B second
Constructor Detail |
---|
public Tuple(A first, B second)
Method Detail |
---|
public static <X,Y> Tuple<X,Y> create(X first, Y second)
public String toString()
("Ace", "Spades")
.
toString
in class Object
protected void extendDescription(StringBuilder builder)
builder
- public boolean equals(Object obj)
equals
in class Object
protected boolean isMatch(Object other)
equals(Object)
; the other object is the same class as this object.
other
- other tuple to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |