Class Value.BoolValue

    • Constructor Detail

      • BoolValue

        public BoolValue​(boolean v)
    • Method Detail

      • valid

        public boolean valid()
        Description copied from interface: Inspector
        Check if the inspector is valid. If you try to access a field or array entry that does not exist, you will get an invalid Inspector returned.
        Specified by:
        valid in interface Inspector
        Overrides:
        valid in class Value
      • type

        public Type type()
        Description copied from interface: Inspector
        Get the type of an inspector
        Specified by:
        type in interface Inspector
        Overrides:
        type in class Value
      • asBool

        public boolean asBool()
        Description copied from interface: Inspector
        Access the inspector's value if it's a BOOLEAN; otherwise throws exception
        Specified by:
        asBool in interface Inspector
        Overrides:
        asBool in class Value
      • asBool

        public boolean asBool​(boolean x)
        Description copied from interface: Inspector
        Get the inspector's value (or the supplied default), never throws
        Specified by:
        asBool in interface Inspector
        Overrides:
        asBool in class Value