@@ -0,0 +1,1258 @@
+package ws.gazebo.util.region.state;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0A%0Apublic class StateInfoTable %7B%0A%09/**%0A%09 * %0A%09 */%0A%09@SuppressWarnings(%22unused%22)%0A%09private static final long serialVersionUID = -1L;%0A%0A%09// 57 entries in the Census ANSI state info table%0A%09ArrayList%3CStateInfo%3E table = new ArrayList%3CStateInfo%3E(57);%0A%09HashMap%3CByte, StateInfo%3E fips52map = new HashMap%3CByte, StateInfo%3E(57);%0A%0A%09/**%0A%09 * Method for initializing a StateInfo instance based on %3Ca%0A%09 * href=%22http://www.census.gov/geo/reference/ansi_statetables.html%22%3EANSI%0A%09 * state table data%3C/a%3E from the US Department of Census. This method%0A%09 * ensures that the instance will be added to all internal indices in the%0A%09 * table.%0A%09 * %0A%09 * @return new StateInfo instance%0A%09 */%0A%09public StateInfo addStateInfo(String%5B%5D fields) %7B%0A%09%09StateInfo info = new StateInfo(fields);%0A%09%09table.add(info);%0A%09%09byte fips52code = info.getStateNumericANSICode();%0A%09%09fips52map.put(fips52code, info);%0A%09%09return info;%0A%09%7D%0A%0A%09/**%0A%09 * Return the %7B@link StateInfo%7D instance denoted uniquely with the%0A%09 * %7B@code fips52code%7D as per INCITS 38:200x (previously FIPS 5-2)%0A%09 * %0A%09 * @param fips52code%0A%09 * @return StateInfo instance%0A%09 */%0A%09public StateInfo getStateInfo(byte fips52code) %7B%0A%09%09return fips52map.get(fips52code);%0A%09%7D%0A%09%0A%7D%0A

add StateInfoTable