|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.billpringle.utils.WrpState
public class WrpState
This class can be used to determine if a string is a valid USPS state abbreviation. Validation can be done using a static routine:
WrpState.isState(abbr);
![]() |
![]() |
Unless noted otherwise, all materials available for download from my site are copyrighted by Bill Pringle, and are licensed under a Creative Commons License. |
Field Summary | |
---|---|
(package private) static long |
serialVersionUID
serial version UID |
static java.lang.String[] |
states
List of US State abbreviations from USPS web site. |
Constructor Summary | |
---|---|
WrpState()
Default constructor Since validation routine is static, this routine isn't really needed |
Method Summary | |
---|---|
static java.lang.Boolean |
isState(java.lang.String abbr)
Routine to validate state abbreviation. |
static void |
main(java.lang.String[] args)
Test driver for class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
public static final java.lang.String[] states
Constructor Detail |
---|
public WrpState()
Method Detail |
---|
public static java.lang.Boolean isState(java.lang.String abbr)
abbr
- abbreviation to check
public static void main(java.lang.String[] args)
args
- not used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |