public class IntPair extends Object
int
s.Modifier and Type | Field and Description |
---|---|
int |
x
The first
int in the pair |
int |
y
The second
int in the pair |
Constructor and Description |
---|
IntPair(int x,
int y)
Creates a pair out of
x and y |
public final int x
int
in the pairpublic final int y
int
in the pairpublic boolean equals(Object o)
true
if o
is a Pair
and its x
and
y
elements are equal to those of this pair. Note that equality
is specific to the ordering of x
and y
.Copyright © 2012. All Rights Reserved.