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