public interface SearchCriteria<T extends GeospatialPoint>
SearchCriteria
can be applied to nearest-neighbor searches in a
GeospatialPointDatabase
to filter the returned list of nearest
neighbors by arbitrary criteria beyond the built-in/implicit distance
criteria. Points in a GeospatialPointDatabase
that match
supplementary search criteria may be included in the list of points returned
by a call to one of the database's search methods while points that do not
match the criteria will not be included.GeospatialPointDatabase.getNearestNeighbor(GeospatialPoint, SearchCriteria)
,
GeospatialPointDatabase.getNearestNeighbor(GeospatialPoint, double, SearchCriteria)
,
GeospatialPointDatabase.getNearestNeighbors(GeospatialPoint, int, SearchCriteria)
,
GeospatialPointDatabase.getNearestNeighbors(GeospatialPoint, int, double, SearchCriteria)
,
GeospatialPointDatabase.getAllNeighborsWithinDistance(GeospatialPoint, double, SearchCriteria)
boolean matches(T point)
true
, the point may be included in search results from a
GeospatialPointDatabase
. If the point does not match and this
method returns false
, the point will not be included.point
- the point to test against these criteriatrue
if the point matches these criteria or false
otherwisejeospatial is an open-source library hosted at https://github.com/jchambers/jeospatial.