Modifier and Type | Method and Description |
---|---|
static <X,Y> Tuple<X,Y> |
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.
|
int |
hashCode()
Returns a hash code value for the tuple, based on its values.
|
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.
|
public String toString()
("Ace", "Spades")
.protected void extendDescription(StringBuilder builder)
builder
- public boolean equals(Object obj)
public int hashCode()
protected boolean isMatch(Object other)
equals(Object)
; the other object is the same class as this object.other
- other tuple to compare5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.