Class ListProviders


  • public class ListProviders
    extends java.lang.Object
    Utility class containing convenience methods dealing with ListProviders.
    • Field Detail

      • EMPTY_LIST_PROVIDER

        public static final ListProvider EMPTY_LIST_PROVIDER
    • Constructor Detail

      • ListProviders

        public ListProviders()
    • Method Detail

      • 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.