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
    • Constructor Detail

      • NullProvider

        public NullProvider()
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Supplier<T>