T
- Type of the pair of contained objectspublic class OrderedPair<T> extends Object
Constructor and Description |
---|
OrderedPair(T a,
T b)
Build a new ordered pair with the specified objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
A pair of objects (a,b) is equal to another pair (c,d) if and only if a,
b, c and d are all the same type and the condition (a.equals(c) &
b.equals(d)) is true.
|
T |
getA()
Return object a
|
T |
getB()
Return object b
|
int |
hashCode() |
public OrderedPair(T a, T b)
a
- b
- RuntimeException
- if either a or b are nullCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.