@PSOperatorWrapper public class ItemsOperators extends java.lang.Object
| Constructor and Description | 
|---|
ItemsOperators()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Function<java.util.List<Item>,java.util.List<Item>> | 
asFieldList()
Collect the items in the stream to a list. 
 | 
static <TValue> Function<java.util.List<Item>,java.util.List<TValue>> | 
asFieldList(java.lang.String fieldToCollect)
Collect the values of a field in the stream to a list. 
 | 
static Function<java.util.List<Item>,Item> | 
getItemWithLeast(java.lang.String listField)
Select an item from the items that has the least elements in a list field. 
 | 
static Function<java.util.List<Item>,Item> | 
getItemWithMax(java.lang.String numField)
Select an item from the items that has the max value of a field. 
 | 
static Function<java.util.List<Item>,Item> | 
getItemWithMin(java.lang.String numField)
Select an item from the items that has the min value of a field. 
 | 
static Function<java.util.List<Item>,Item> | 
getItemWithMost(java.lang.String listField)
Select an item from the items that has the most elements in a list field. 
 | 
public static Function<java.util.List<Item>,java.util.List<Item>> asFieldList()
public static <TValue> Function<java.util.List<Item>,java.util.List<TValue>> asFieldList(java.lang.String fieldToCollect)
fieldToCollect - the name of the field to collect.public static Function<java.util.List<Item>,Item> getItemWithMax(java.lang.String numField)
numField - the name of the number fieldpublic static Function<java.util.List<Item>,Item> getItemWithMin(java.lang.String numField)
numField - the name of the number fieldpublic static Function<java.util.List<Item>,Item> getItemWithMost(java.lang.String listField)
listField - the name of the list field