|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--Address
Address for letter to be sorted at the post office.
Constructor Summary | |
Address(String aZipCode)
Constructs a new address with the given zip code. |
Method Summary | |
boolean |
equals(Object other)
Compares this address to the given object. |
static int |
getCompareCount()
Returns the compare count of addresses. |
String |
getZipCode()
Returns the zip code for this. |
int |
hashCode()
Returns the hash code for this. |
boolean |
isHighlighted()
Returns whether or not the letter for this should be highlighted. |
static void |
resetCompareCount()
Resets the compare count of addresses to 0. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Address(String aZipCode)
Method Detail |
public boolean equals(Object other)
equals
in class Object
other
- object to which to compare thispublic String getZipCode()
public boolean isHighlighted()
public int hashCode()
hashCode
in class Object
public static int getCompareCount()
public static void resetCompareCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |