public.javadoc.org.spincast.core.utils.Bool.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
Bool (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.utils
Class Bool
- java.lang.Object
-
- org.spincast.core.utils.Bool
-
public class Bool
extends Object
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
static Bool
from(boolean val)
boolean
getBoolean()
String
toString()
Copyright © 2019. All rights reserved.