Class ObjectUtils.Null

  • All Implemented Interfaces:
    Enclosing class:

    public static class ObjectUtils.Null
    extends java.lang.Object
    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 the HashMap.get(java.lang.Object) method returns null if the Map contains null or if there is no matching key. The Null placeholder can be used to distinguish between these two cases.

    Another example is Hashtable, where null cannot be stored.

    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait