Class ListProviders

java.lang.Object
de.hybris.platform.cockpit.util.ListProviders

public class ListProviders extends Object
Utility class containing convenience methods dealing with ListProviders.
  • Field Details

    • EMPTY_LIST_PROVIDER

      public static final ListProvider EMPTY_LIST_PROVIDER
  • Constructor Details

    • ListProviders

      public ListProviders()
  • Method Details

    • singletonListProvider

      public static <T> ListProvider<T> singletonListProvider(T object)
      Creates a ListProvider with a single entry.
      Parameters:
      object - the list element.
    • emptyListProvider

      public static <T> ListProvider<T> emptyListProvider()
      Creates a ListProvider that provides an empty list.