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