Package autocomplete.cities
Class CitiesMultiTest
- java.lang.Object
 - 
- autocomplete.cities.CitiesMultiTest
 
 
- 
class CitiesMultiTest extends Object
Compare differentAutocompleteimplementations to check that they compute the same values. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private static intMAX_CITIESMaximum number of cities to parse.private static intMAX_MATCHESMaximum number of matches to print.private static StringPATHPath to the cities dataset. 
- 
Constructor Summary
Constructors Constructor Description CitiesMultiTest() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)private static voidprintMatches(List<CharSequence> matches)Print up to the firstMAX_MATCHESgiven matches. 
 - 
 
- 
- 
Field Detail
- 
MAX_MATCHES
private static final int MAX_MATCHES
Maximum number of matches to print.- See Also:
 - Constant Field Values
 
 
- 
MAX_CITIES
private static final int MAX_CITIES
Maximum number of cities to parse.- See Also:
 - Constant Field Values
 
 
- 
PATH
private static final String PATH
Path to the cities dataset.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
printMatches
private static void printMatches(List<CharSequence> matches)
Print up to the firstMAX_MATCHESgiven matches. 
- 
main
public static void main(String[] args) throws IOException
- Throws:
 IOException
 
 - 
 
 -