|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.Pair<ObjType>
public class Pair<ObjType>
This class allows storing pairs of objects as a single entity.
| Constructor Summary | |
|---|---|
Pair(ObjType first_entry,
ObjType second_entry)
Constructor for a pair representation of objects of the same type. |
|
| Method Summary | |
|---|---|
ObjType |
get_first_entry()
Get the first entry of the pair. |
ObjType |
get_second_entry()
Get the second entry of the pair. |
void |
Print()
Print a string representation of the contents of the pair. |
void |
set_first_entry(ObjType first_entry)
Set the first entry of the pair. |
void |
set_second_entry(ObjType second_entry)
Get the second entry of the pair. |
java.lang.String |
toString()
Generate a string representation of the contents of the pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(ObjType first_entry,
ObjType second_entry)
first_entry - the first of the two objects.second_entry - the first of the two objects.| Method Detail |
|---|
public ObjType get_first_entry()
public void set_first_entry(ObjType first_entry)
first_entry - the first of the two objects.public ObjType get_second_entry()
public void set_second_entry(ObjType second_entry)
second_entry - the second of the two objects.public java.lang.String toString()
toString in class java.lang.Objectpublic void Print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||