|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PostalRetrievalStrategy
Encapsulates a strategy for retrieving postal codes.
Method Summary | |
---|---|
void |
dispose()
|
java.util.List |
getCandidates(int postalCode)
Retrieves a list of candidate cities for a specified postal code. |
void |
initialize(java.io.File indexFile,
java.io.File dataFile)
Initializes the retrieval strategy with the postal code index and data files. |
Method Detail |
---|
void initialize(java.io.File indexFile, java.io.File dataFile) throws java.lang.Exception
indexFile
- dataFile
-
java.lang.Exception
void dispose() throws java.lang.Exception
java.lang.Exception
java.util.List getCandidates(int postalCode)
postalCode
- the postal code.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |