public static class Value.BoolValue extends Value
Value.ArrayValue, Value.BoolValue, Value.DataValue, Value.DoubleValue, Value.EmptyValue, Value.LongValue, Value.ObjectValue, Value.StringValue
Modifier and Type | Field and Description |
---|---|
private boolean |
value |
Constructor and Description |
---|
BoolValue(boolean v) |
Modifier and Type | Method and Description |
---|---|
boolean |
asBool()
Access the inspector's value if it's a BOOLEAN; otherwise throws exception
|
boolean |
asBool(boolean x)
Get the inspector's value (or the supplied default), never throws
|
Type |
type()
Get the type of an inspector
|
boolean |
valid()
Check if the inspector is valid.
|
public boolean valid()
Inspector
public boolean asBool()
Inspector
Copyright © 2017. All rights reserved.