T
- public class OrderedPair<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
T |
getElement1() |
T |
getElement2() |
void |
setElement1(T element1)
Sets the first element of an ordered pair.
|
void |
setElement2(T element2)
Sets the second element of an ordered pair.
|
java.lang.String |
toString() |
public T getElement1()
public void setElement1(T element1)
element1
- the first element of an ordered pairpublic T getElement2()
public void setElement2(T element2)
element2
- the second element of an ordered pairpublic java.lang.String toString()
toString
in class java.lang.Object