|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.fenyo.gnetwatch.Pair<E,F>
public class Pair<E,F>
This utility class groups objects by pairs.
| Field Summary | |
|---|---|
private E |
e
|
private F |
f
|
| Constructor Summary | |
|---|---|
Pair(E e,
F f)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Two pairs are equal if their respective first and last objects are equal. |
E |
former()
Returns the first object. |
int |
hashCode()
Returns a hashcode. |
F |
latter()
Returns the last object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final E e
private final F f
| Constructor Detail |
|---|
public Pair(E e,
F f)
e - first object.f - last object.| Method Detail |
|---|
public E former()
none. -
public F latter()
none. -
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - another pair.
public int hashCode()
hashCode in class java.lang.Objectnone. -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||