|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wotonomy.control.EONullValue
public class EONullValue
EONullValue is used to represent null in Collections classes
because List and Map do not specify whether null values
are allowed and because NSArray and NSDictionary explicitly
do not allow null values.
Use of the static singleton method nullValue() is required
by this implementation because Java cannot return a singleton
instance from a constructor.
This implementation duplicates NSNull, but the singleton instances
are of course different. Be careful. I have no idea why this
class was even created, given that NSNull exists.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object anObject)
Implemented to return true for any instance of EONullValue and for any instance of NSNull. |
int |
hashCode()
Hashcode of all instances is zero. |
static EONullValue |
nullValue()
Constructor specifying name and object. |
java.lang.String |
toString()
Returns a human-readable string representation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static EONullValue nullValue()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object anObject)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |