public class Bool extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
static Bool |
from(boolean val) |
boolean |
getBoolean() |
String |
toString() |
Copyright © 2019. All rights reserved.