epimetheus
Class ContactKey

java.lang.Object
  |
  +--epimetheus.ContactKey
All Implemented Interfaces:
java.lang.Comparable

public class ContactKey
extends java.lang.Object
implements java.lang.Comparable

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.

Version:
0, 0, 1
Author:
Alexis Grandemange

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

name

java.lang.String name
Contact name


phone

int phone
Phone #

Constructor Detail

ContactKey

public ContactKey()
Method Detail

compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
Method of the Comparable interface.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - object to compare
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
java.lang.ClassCastException

equals

public boolean equals(java.lang.Object o)
Method of Object overriden to be consistent with compareTo.

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare
Returns:
true if this object equals the obj argument