Result
, Iterable<Result.Facet>
public static class Result.FacetList extends Object implements Result, Iterable<Result.Facet>
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 |
---|---|
FacetList() |
Modifier and Type | Method | Description |
---|---|---|
List<Result.Facet> |
getFacets() |
Get a list of the facets.
|
Result.ResultType |
getType() |
Get the result type of this result.
|
boolean |
isEmpty() |
Check if this result is empty.
|
Iterator<Result.Facet> |
iterator() |
|
static Result.FacetList |
mock(List<Result.Facet> facets) |
Creates a new FacetList object for test purposes.
|
int |
size() |
Get the number of facets in the list.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static Result.FacetList mock(List<Result.Facet> facets)
facets
- the facets to include in the resultpublic Iterator<Result.Facet> iterator()
iterator
in interface Iterable<Result.Facet>
public final int size()
public boolean isEmpty()
public List<Result.Facet> getFacets()
public String toString()
public Result.ResultType getType()
Result
Copyright © 2020 Apptus Technologies AB. All rights reserved.