A - B - public class Tuple<A,B> extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <X,Y> Tuple<X,Y> |
create(X first,
Y second) |
boolean |
equals(java.lang.Object obj)
Compares this Tuple to another object.
|
protected void |
extendDescription(java.lang.StringBuilder builder)
Overriden in subclasses to write additional values into the
description.
|
protected boolean |
isMatch(java.lang.Object other)
The heart of
equals(Object); the other object is the same class as this object. |
java.lang.String |
toString()
Returns the values of the tuple, separated by commas, enclosed in parenthesis.
|
public java.lang.String toString()
("Ace", "Spades").toString in class java.lang.Objectprotected void extendDescription(java.lang.StringBuilder builder)
builder - public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected boolean isMatch(java.lang.Object other)
equals(Object); the other object is the same class as this object.other - other tuple to compare${project.version} - Copyright © 2003-2015 The Apache Software Foundation.