Package org.apache.commons.lang
Class ObjectUtils.Null
- java.lang.Object
-
- org.apache.commons.lang.ObjectUtils.Null
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ObjectUtils
@Deprecated(since="2021-04-30") public static class ObjectUtils.Null extends java.lang.Object implements java.io.Serializable
Deprecated.Commons Lang 2 is in maintenance mode. Commons Lang 3 should be used instead.Class used as a null placeholder where
null
has another meaning.For example, in a
HashMap
theHashMap.get(java.lang.Object)
method returnsnull
if theMap
containsnull
or if there is no matching key. TheNull
placeholder can be used to distinguish between these two cases.Another example is
Hashtable
, wherenull
cannot be stored.- See Also:
- Serialized Form