Package org.spincast.core.utils
Class Bool
java.lang.Object
org.spincast.core.utils.Bool
Boolean object that can't be autoboxed.
Java's Boolean objects are quite dangerous because of autoboxing. For
example, if(myBooleanObject)
will throw an NullPointerException
if it's null.
This Bool class allows to carry a null
, true
or false
value, without the autoboxing dangers.