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