org.apache.wicket.util
Class NullProvider<T>

java.lang.Object
  extended by org.apache.wicket.util.NullProvider<T>
Type Parameters:
T -
All Implemented Interfaces:
IProvider<T>

public class NullProvider<T>
extends java.lang.Object
implements IProvider<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 Summary
NullProvider()
           
 
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
 

Constructor Detail

NullProvider

public NullProvider()
Method Detail

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-2011 Apache Software Foundation. All Rights Reserved.