Builder
class Builder(resultLimit: Int = DEFAULT_SEARCH_RESULT_LIMIT, searchRadius: Double = DEFAULT_SEARCH_RADIUS, searchResultRankings: MutableList<Predicate<EVStation>> = mutableListOf(), searchResultFilters: MutableList<Predicate<EVStation>> = mutableListOf(), targetPointForSearchSorting: Point? = null)
Constructors
Link copied to clipboard
constructor(resultLimit: Int = DEFAULT_SEARCH_RESULT_LIMIT, searchRadius: Double = DEFAULT_SEARCH_RADIUS, searchResultRankings: MutableList<Predicate<EVStation>> = mutableListOf(), searchResultFilters: MutableList<Predicate<EVStation>> = mutableListOf(), targetPointForSearchSorting: Point? = null)
Functions
Link copied to clipboard
Link copied to clipboard
Removes all of the search result filters
Link copied to clipboard
Clears all of the search result rankings.
Link copied to clipboard
The search results should contain no more than the quantity indicated
Link copied to clipboard
Indicates the EV search radius.
Link copied to clipboard
Adds a search result filter. Any EVStations that don't meet the criteria of the filter will be filtered out of the search results before they are returned to the caller.
Link copied to clipboard
Appends search result filters.
Link copied to clipboard
Appends a ranking to EV search results that when true will put the result ahead of results that return a value of false for the predicate.
Link copied to clipboard
Replaces all search rankings with the rankings provided.
Link copied to clipboard
If provided the search results will be sorted by the distance from the target point in ascending order.