Package de.hybris.platform.cockpit.util
Class ListProviders
- java.lang.Object
-
- de.hybris.platform.cockpit.util.ListProviders
-
public class ListProviders extends java.lang.ObjectUtility class containing convenience methods dealing withListProviders.
-
-
Field Summary
Fields Modifier and Type Field Description static ListProviderEMPTY_LIST_PROVIDER
-
Constructor Summary
Constructors Constructor Description ListProviders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ListProvider<T>emptyListProvider()Creates aListProviderthat provides an empty list.static <T> ListProvider<T>singletonListProvider(T object)Creates aListProviderwith a single entry.
-
-
-
Field Detail
-
EMPTY_LIST_PROVIDER
public static final ListProvider EMPTY_LIST_PROVIDER
-
-
Method Detail
-
singletonListProvider
public static <T> ListProvider<T> singletonListProvider(T object)
Creates aListProviderwith a single entry.- Parameters:
object- the list element.
-
emptyListProvider
public static <T> ListProvider<T> emptyListProvider()
Creates aListProviderthat provides an empty list.
-
-