Package org.apache.commons.lang
Class ObjectUtils.Null
- java.lang.Object
-
- org.apache.commons.lang.ObjectUtils.Null
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ObjectUtils
public static class ObjectUtils.Null extends Object implements Serializable
Class used as a null placeholder where
nullhas another meaning.For example, in a
HashMaptheHashMap.get(java.lang.Object)method returnsnullif theMapcontainsnullor if there is no matching key. TheNullplaceholder can be used to distinguish between these two cases.Another example is
Hashtable, wherenullcannot be stored.- See Also:
- Serialized Form