Package com.yahoo.data.access.simple
Class Value.BoolValue
java.lang.Object
com.yahoo.data.access.simple.Value
com.yahoo.data.access.simple.Value.BoolValue
- All Implemented Interfaces:
Inspectable,Inspector
- Enclosing class:
- Value
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.data.access.simple.Value
Value.ArrayValue, Value.BoolValue, Value.DataValue, Value.DoubleValue, Value.EmptyValue, Value.LongValue, Value.ObjectValue, Value.StringValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanasBool()Access the inspector's value if it's a BOOLEAN; otherwise throws exceptionbooleanasBool(boolean x) Get the inspector's value (or the supplied default), never throwstype()Get the type of an inspectorbooleanvalid()Check if the inspector is valid.
-
Constructor Details
-
BoolValue
public BoolValue(boolean v)
-
-
Method Details
-
valid
public boolean valid()Description copied from interface:InspectorCheck 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. -
type
Description copied from interface:InspectorGet the type of an inspector -
asBool
public boolean asBool()Description copied from interface:InspectorAccess the inspector's value if it's a BOOLEAN; otherwise throws exception -
asBool
public boolean asBool(boolean x) Description copied from interface:InspectorGet the inspector's value (or the supplied default), never throws
-