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