Result
, Iterable<Result.Completion>
public static class Result.Completions extends Object implements Result, Iterable<Result.Completion>
Result.Ad, Result.Ads, Result.Attribute, Result.Category, Result.CategoryData, Result.CategoryList, Result.CategoryNode, Result.Completion, Result.Completions, Result.Correction, Result.Corrections, Result.Count, Result.Facet, Result.FacetList, Result.FacetRange, Result.Phrase, Result.Phrases, Result.Product, Result.Products, Result.ResultType, Result.Value, Result.Values, Result.Variant
Constructor | Description |
---|---|
Completions() |
Modifier and Type | Method | Description |
---|---|---|
List<Result.Completion> |
getCompletions() |
Get a list of the completions.
|
Result.ResultType |
getType() |
Get the result type of this result.
|
boolean |
isEmpty() |
Check if this result is empty.
|
Iterator<Result.Completion> |
iterator() |
|
static Result.Completions |
mock(List<Result.Completion> completions) |
Creates a new Completions object for test purposes.
|
int |
size() |
Get the number of completions found.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static Result.Completions mock(List<Result.Completion> completions)
completions
- the completions to include in the completions resultpublic final int size()
public final boolean isEmpty()
public List<Result.Completion> getCompletions()
public Iterator<Result.Completion> iterator()
iterator
in interface Iterable<Result.Completion>
public String toString()
public Result.ResultType getType()
Result
Copyright © 2021 Apptus Technologies AB. All rights reserved.