Class NullProvider<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Supplier<T>

    public class NullProvider<T>
    extends Object
    implements Supplier<T>
    Provider that provides nulls. Convenient to have to avoid a double null check for the provider and its provided instance.
    Author:
    igor.vaynberg