public class NullObject
extends java.lang.Object
NullObject
enables a user to treat an object as null value.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM Copyright notice field.
|
static NullObject |
VALUE
An instance of NullObject.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines if an object is a NullObject.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static NullObject VALUE
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to be examinedpublic int hashCode()
hashCode
in class java.lang.Object
NullObject
should have the same
has code.public java.lang.String toString()
toString
in class java.lang.Object