Package autocomplete.cities
Class CitiesMultiTest
- java.lang.Object
-
- autocomplete.cities.CitiesMultiTest
-
class CitiesMultiTest extends Object
Compare differentAutocomplete
implementations to check that they compute the same values.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_CITIES
Maximum number of cities to parse.private static int
MAX_MATCHES
Maximum number of matches to print.private static String
PATH
Path to the cities dataset.
-
Constructor Summary
Constructors Constructor Description CitiesMultiTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
private static void
printMatches(List<CharSequence> matches)
Print up to the firstMAX_MATCHES
given 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_MATCHES
given matches.
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-