|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ahmadsoft.postal.PostalCodeEntry
public class PostalCodeEntry
Represents a USPS recognized city, state, postal code combination. Instances of this class are immutable.
Constructor Summary | |
---|---|
PostalCodeEntry(int postalCode,
java.lang.String city,
java.lang.String state,
int type)
Constructs a new postal code entry. |
Method Summary | |
---|---|
java.lang.String |
getCity()
Returns the city associated with this entry. |
int |
getEntryType()
Returns the type of this entry. |
int |
getPostalCode()
Returns the postal code associated with this entry. |
java.lang.String |
getState()
Returns the two-letter abbreviation for the state associated with this entry. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PostalCodeEntry(int postalCode, java.lang.String city, java.lang.String state, int type)
postalCode
- the postal code.city
- the city name.state
- the state.type
- the type of entry.Method Detail |
---|
public java.lang.String getCity()
public int getEntryType()
PostalCodeConstants.CITY*
fully enumerates the valid values for this entry.
public int getPostalCode()
public java.lang.String getState()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |