boolean
value, assuming that this value is either true
or false
. If this is not the case, an exception is thrown.
@return this value as boolean
@throws UnsupportedOperationException if this value is neither true
or false
If representation can not be converted to a boolean value (including structured types like Objects and Arrays), default value of false will be returned; no exceptions are thrown.
boolean
value, assuming that this value is either true
or false
. If this is not the case, an exception is thrown.
@return this value as boolean
@throws UnsupportedOperationException if this value is neither true
or false
If representation can not be converted to a boolean value (including structured types like Objects and Arrays), default value of false will be returned; no exceptions are thrown.
@since 1.9 (replaces getValueAsBoolean
)
Returns the member's value as a boolean. If necessary, type conversion is performed in a similar manner as described for asInt(), except that IllegalArgumentException is thrown instead of NumberFormatException.
defaultValue
if it does not exist.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|