Class SuggestionsResult
- java.lang.Object
-
- global.maplink.geocode.schema.suggestions.SuggestionsResult
-
- All Implemented Interfaces:
Iterable<Suggestion>
public class SuggestionsResult extends Object implements Iterable<Suggestion>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSuggestionsResult.SuggestionsResultBuilder
-
Field Summary
Fields Modifier and Type Field Description static SuggestionsResultEMPTY
-
Constructor Summary
Constructors Constructor Description SuggestionsResult()SuggestionsResult(int found, List<Suggestion> results)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SuggestionsResult.SuggestionsResultBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)Optional<Suggestion>getById(String id)intgetFound()SuggestiongetMostRelevant()List<Suggestion>getResults()inthashCode()booleanisEmpty()Iterator<Suggestion>iterator()SuggestionsResultjoinTo(SuggestionsResult anotherResult)Stream<Suggestion>parallelStream()Stream<Suggestion>stream()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY
public static final SuggestionsResult EMPTY
-
-
Constructor Detail
-
SuggestionsResult
public SuggestionsResult(int found, List<Suggestion> results)
-
SuggestionsResult
public SuggestionsResult()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getMostRelevant
public Suggestion getMostRelevant()
-
getById
public Optional<Suggestion> getById(String id)
-
joinTo
public SuggestionsResult joinTo(SuggestionsResult anotherResult)
-
iterator
public Iterator<Suggestion> iterator()
- Specified by:
iteratorin interfaceIterable<Suggestion>
-
stream
public Stream<Suggestion> stream()
-
parallelStream
public Stream<Suggestion> parallelStream()
-
builder
public static SuggestionsResult.SuggestionsResultBuilder builder()
-
getFound
public int getFound()
-
getResults
public List<Suggestion> getResults()
-
canEqual
protected boolean canEqual(Object other)
-
-