Package org.apache.commons.lang3
Class ObjectUtils.Null
- java.lang.Object
-
- org.apache.commons.lang3.ObjectUtils.Null
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ObjectUtils
public static class ObjectUtils.Null extends java.lang.Object implements java.io.SerializableClass 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
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDRequired for serialization support.
-
Constructor Summary
Constructors Constructor Description Null()Restricted constructor - singleton.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.ObjectreadResolve()Ensure singleton.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Required for serialization support. Declare serialization compatibility with Commons Lang 1.0- See Also:
Serializable, Constant Field Values
-
-