Package oracle.nosql.driver.values
Class BooleanValue
java.lang.Object
oracle.nosql.driver.values.FieldValue
oracle.nosql.driver.values.BooleanValue
- All Implemented Interfaces:
- Comparable<FieldValue>
A 
FieldValue instance representing a boolean value. Boolean values
 are singleton final instances and never constructed.- 
Nested Class SummaryNested classes/interfaces inherited from class oracle.nosql.driver.values.FieldValueFieldValue.Type
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(FieldValue other) booleanstatic BooleanValueReturns a singleton instance representing a false BooleanValuestatic BooleanValuegetInstance(boolean value) Returns a singleton instance representing the boolean value provided.Returns a String value for the field.getType()Returns the type of the objectabstract booleangetValue()Returns the boolean value of the fieldinthashCode()longsizeof()static BooleanValueReturns a singleton instance representing a true BooleanValueMethods inherited from class oracle.nosql.driver.values.FieldValueasArray, asBinary, asBoolean, asDouble, asInteger, asJsonNull, asLong, asMap, asNull, asNumber, asString, asTimestamp, castAsDouble, createFromJson, createFromJson, createFromJson, getBinary, getBoolean, getDouble, getInt, getLong, getNumber, getSerializedSize, getTimestamp, isAnyNull, isArray, isAtomic, isBinary, isBoolean, isDouble, isInteger, isJsonNull, isLong, isMap, isNull, isNumber, isNumeric, isString, isTimestamp, toJson, toJson, toString
- 
Method Details- 
trueInstanceReturns a singleton instance representing a true BooleanValue- Returns:
- the value
 
- 
falseInstanceReturns a singleton instance representing a false BooleanValue- Returns:
- the value
 
- 
getInstanceReturns a singleton instance representing the boolean value provided.- Parameters:
- value- the value
- Returns:
- the value
 
- 
getValuepublic abstract boolean getValue()Returns the boolean value of the field- Returns:
- the value
 
- 
getStringDescription copied from class:FieldValueReturns a String value for the field. The String value cannot be created for MapValue, ArrayValue and BinaryValue. String values that are coerced use Java rules for representation.- Overrides:
- getStringin class- FieldValue
- Returns:
- a String value
 
- 
getTypeDescription copied from class:FieldValueReturns the type of the object- Specified by:
- getTypein class- FieldValue
- Returns:
- the type
 
- 
compareTo
- 
equals
- 
hashCodepublic int hashCode()
- 
sizeofpublic long sizeof()
 
-