|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--epimetheus.ContactKey
Keys of the contacts TreeMap.
alexis.grandemange@pagebox.net
Copyright (c) 2002-2003 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
| Field Summary | |
(package private) java.lang.String |
name
Contact name |
(package private) int |
phone
Phone # |
| Constructor Summary | |
ContactKey()
|
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Method of the Comparable interface. |
boolean |
equals(java.lang.Object o)
Method of Object overriden to be consistent with compareTo. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String name
int phone
| Constructor Detail |
public ContactKey()
| Method Detail |
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparableo - object to compare
java.lang.ClassCastExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||