Searched defs:postalCode (Results 1 - 6 of 6) sorted by relevance
/org.ahmadsoft.jpostal-1.0.44/src/org/ahmadsoft/postal/ |
H A D | PostalRetrievalStrategy.java | 48 * @param postalCode the postal code.
51 List getCandidates(int postalCode);
argument
|
H A D | DiskStrategy.java | 46 public synchronized List getCandidates(int postalCode) {
argument 47 if (postalCode < 1 || postalCode > 99999) {
54 indexFile.seek((postalCode-1) * 8);
64 result.add(new PostalCodeEntry(postalCode,city,state,type));
|
H A D | InMemoryStrategy.java | 75 public List getCandidates(int postalCode) {
argument 76 if (map.containsKey(new Integer(postalCode))) {
77 return Collections.unmodifiableList((List) map.get(new Integer(postalCode)));
|
H A D | PostalCodeEntry.java | 28 private int postalCode;
field in class:PostalCodeEntry 36 * @param postalCode the postal code.
41 public PostalCodeEntry(int postalCode, String city, String state, int type) {
argument 45 this.postalCode = postalCode;
72 return postalCode;
|
H A D | ReadOnceStrategy.java | 52 private synchronized List diskLookup(int postalCode) {
argument 56 indexFile.seek((postalCode-1) * 8);
66 result.add(new PostalCodeEntry(postalCode,city,state,type));
78 public List getCandidates(int postalCode) {
argument 79 if (postalCode < 1 || postalCode > 99999) {
84 if (!cache.containsKey(new Integer(postalCode))) {
85 candidates = Collections.unmodifiableList(diskLookup(postalCode));
86 cache.put(new Integer(postalCode), candidates);
88 candidates = (List) cache.get(new Integer(postalCode));
[all...] |
H A D | USPostalCodeService.java | 75 * @param postalCode the postal code.
79 public List getCandidates(int postalCode) {
argument 80 return retrievalStrategy.getCandidates(postalCode);
91 * @param postalCode the postal code.
98 public boolean isPostalCodeIn(int postalCode, String stateAbbr) {
argument 99 List candidates = this.retrievalStrategy.getCandidates(postalCode);
121 * @param postalCode
128 public PostalCodeEntry getActualFor(int postalCode) {
argument 129 List candidates = this.retrievalStrategy.getCandidates(postalCode);
147 * @param postalCode th 152 match(String city, int postalCode) argument 172 match(String city, int postalCode, MatchOptions options) argument [all...] |
Completed in 6 milliseconds