All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.core.utils.Bool.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






Bool (org.spincast:spincast-framework 1.0.0 API)












org.spincast.core.utils

Class 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.

    • Field Detail

      • TRUE

        public static final Bool TRUE
      • FALSE

        public static final Bool FALSE
    • Method Detail

      • from

        public static Bool from(boolean val)
      • getBoolean

        public boolean getBoolean()

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy