public class IntTuple extends Object implements Comparable<IntTuple>, Serializable
Modifier and Type | Field and Description |
---|---|
int |
left
The left int.
|
int |
right
The right int.
|
Constructor and Description |
---|
IntTuple()
Construct a blank tuple.
|
IntTuple(int left,
int right)
Construct a tuple with the specified two objects.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IntTuple ot) |
boolean |
equals(Object other)
A tuple is equal to another tuple if the left and right elements
are equal to the left and right elements (respectively) of the
other tuple.
|
int |
hashCode()
Returns the combined hashcode of the two elements.
|
String |
toString() |
public IntTuple(int left, int right)
public IntTuple()
public int hashCode()
public int compareTo(IntTuple ot)
compareTo
in interface Comparable<IntTuple>
public boolean equals(Object other)
Copyright © 2015. All rights reserved.