org.apache.wicket.util
Class NullProvider<T>
java.lang.Object
org.apache.wicket.util.NullProvider<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- IProvider<T>
public class NullProvider<T>
- extends Object
- implements IProvider<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
Method Summary |
T |
get()
Provides an instance of type T |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullProvider
public NullProvider()
get
public T get()
- Description copied from interface:
IProvider
- Provides an instance of type
T
- Specified by:
get
in interface IProvider<T>
- Returns:
- instance of type
T
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.