Result, Result.Facet, Iterable<Result.Value>public static class Result.Values extends Object implements Result, Result.Facet, Iterable<Result.Value>
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| Modifier and Type | Method | Description | 
|---|---|---|
| String | getAttribute() | The attribute associated with the facet. | 
| Result.ResultType | getType() | Get the result type of this result. | 
| List<Result.Value> | getValues() | Get a list of the values. | 
| boolean | isEmpty() | Check if this result is empty. | 
| boolean | isRange() | Check if this facet is a range facet or a multi value facet. | 
| Iterator<Result.Value> | iterator() | |
| static Result.Values | mock(List<Result.Value> values) | Creates a new Values object for test purposes. | 
| static Result.Values | mock(List<Result.Value> values,
    String attribute) | Creates a new Values object for test purposes. | 
| int | size() | Get the number of values. | 
| String | toString() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Values(String attribute)
public static Result.Values mock(List<Result.Value> values)
values - the values to include in the values resultpublic static Result.Values mock(List<Result.Value> values, String attribute)
values - the values to include in the values resultattribute - the attribute associated with the valuespublic Iterator<Result.Value> iterator()
iterator in interface Iterable<Result.Value>public final int size()
public boolean isEmpty()
public List<Result.Value> getValues()
public String toString()
public Result.ResultType getType()
Resultpublic boolean isRange()
Result.FacetisRange in interface Result.Facetpublic String getAttribute()
Result.FacetgetAttribute in interface Result.FacetCopyright © 2021 Apptus Technologies AB. All rights reserved.