T
- the data type.public class OrderedPair<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private T |
_x
The first element.
|
private T |
_y
The second element.
|
Constructor and Description |
---|
OrderedPair(T x,
T y)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
getX()
Returns the first element.
|
T |
getY()
Returns the second element.
|