public interface Locations
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
compare localization services; to be used for hash sets with localization services
|
java.util.TreeSet<GeoLocation> |
find(java.lang.String anyname,
boolean locationexact)
find a location by name
|
int |
hashCode()
hashCode that must be used to distinguish localization services in hash sets
|
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
locationNames()
produce a set of location names
|
java.lang.String |
nickname()
return an nickname of the localization service
|
java.util.Set<java.lang.String> |
recommend(java.lang.String s)
recommend a set of names according to a given name
|
java.util.Set<java.lang.StringBuilder> |
recommend(java.lang.StringBuilder s)
recommend a set of names according to a given name
|
int |
size()
the number of locations that this localization stores
|
int size()
boolean isEmpty()
java.util.TreeSet<GeoLocation> find(java.lang.String anyname, boolean locationexact)
anyname
- - a name of a locationlocationexact
- - if true, then only exact matched with the location are returned. if false also partially matching namesjava.util.Set<java.lang.String> locationNames()
java.util.Set<java.lang.String> recommend(java.lang.String s)
s
- a possibly partially matching namejava.util.Set<java.lang.StringBuilder> recommend(java.lang.StringBuilder s)
s
- a possibly partially matching namejava.lang.String nickname()
int hashCode()
hashCode
in class java.lang.Object
boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
-