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>
public abstract class BooleanValue extends FieldValue
AFieldValue
instance representing a boolean value. Boolean values are singleton final instances and never constructed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class oracle.nosql.driver.values.FieldValue
FieldValue.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(FieldValue other)
boolean
equals(Object other)
static BooleanValue
falseInstance()
Returns a singleton instance representing a false BooleanValuestatic BooleanValue
getInstance(boolean value)
Returns a singleton instance representing the boolean value provided.FieldValue.Type
getType()
Returns the type of the objectabstract boolean
getValue()
Returns the boolean value of the fieldint
hashCode()
long
sizeof()
static BooleanValue
trueInstance()
Returns a singleton instance representing a true BooleanValue-
Methods inherited from class oracle.nosql.driver.values.FieldValue
asArray, asBinary, asBoolean, asDouble, asInteger, asJsonNull, asLong, asMap, asNull, asNumber, asString, asTimestamp, castAsDouble, createFromJson, createFromJson, createFromJson, getBinary, getBoolean, getDouble, getInt, getLong, getNumber, getSerializedSize, getString, getTimestamp, isAtomic, isJsonNull, isNull, isNumeric, toJson, toJson, toString
-
-
-
-
Method Detail
-
trueInstance
public static BooleanValue trueInstance()
Returns a singleton instance representing a true BooleanValue- Returns:
- the value
-
falseInstance
public static BooleanValue falseInstance()
Returns a singleton instance representing a false BooleanValue- Returns:
- the value
-
getInstance
public static BooleanValue getInstance(boolean value)
Returns a singleton instance representing the boolean value provided.- Parameters:
value
- the value- Returns:
- the value
-
getValue
public abstract boolean getValue()
Returns the boolean value of the field- Returns:
- the value
-
getType
public FieldValue.Type getType()
Description copied from class:FieldValue
Returns the type of the object- Specified by:
getType
in classFieldValue
- Returns:
- the type
-
compareTo
public int compareTo(FieldValue other)
-
sizeof
public long sizeof()
-
-