| java.lang.Object net.fenyo.gnetwatch.Pair
Pair | public class Pair (Code) | | This utility class groups objects by pairs.
author: Alexandre Fenyo version: $Id: Pair.java,v 1.6 2007/03/03 00:38:19 fenyo Exp $ |
Constructor Summary | |
public | Pair(E e, F f) Constructor. |
Method Summary | |
public boolean | equals(Object o) Two pairs are equal if their respective first and last objects are equal.
Parameters: o - another pair. | public E | former() Returns the first object.
none. | public int | hashCode() Returns a hashcode.
none. | public F | latter() Returns the last object.
none. |
Pair | public Pair(E e, F f)(Code) | | Constructor.
Parameters: e - first object. Parameters: f - last object. |
equals | public boolean equals(Object o)(Code) | | Two pairs are equal if their respective first and last objects are equal.
Parameters: o - another pair. boolean true in case of equality. |
former | public E former()(Code) | | Returns the first object.
none. E first object. |
hashCode | public int hashCode()(Code) | | Returns a hashcode.
none. int hashcode. |
latter | public F latter()(Code) | | Returns the last object.
none. F last object. |
|
|