public final class Null
extends java.lang.Object
implements java.io.Serializable
VALUE is used to given an object variable a dual-mode
nullified value, where null would indicate that the value is
empty, and VALUE would idicate that the value has been
set to null (or something to that effect).
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The serialVersionUID
|
static Null |
VALUE
The primary instance of Null.
|
| Modifier | Constructor and Description |
|---|---|
private |
Null()
Do not allow public construction.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if the given object is a Null instance or null.
|
int |
hashCode()
Returns zero.
|
java.lang.String |
toString()
Return a string representation.
|
private static final long serialVersionUID
public static final Null VALUE
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to test.