public class BooleanSerializer extends TypeSerializer<java.lang.Boolean>
Modifier and Type | Field and Description |
---|---|
static BooleanSerializer |
instance |
Constructor and Description |
---|
BooleanSerializer() |
Modifier and Type | Method and Description |
---|---|
<V> java.lang.Boolean |
deserialize(V value,
ValueAccessor<V> accessor) |
java.lang.Class<java.lang.Boolean> |
getType() |
java.nio.ByteBuffer |
serialize(java.lang.Boolean value) |
java.lang.String |
toString(java.lang.Boolean value) |
<V> void |
validate(V value,
ValueAccessor<V> accessor) |
deserialize, toCQLLiteral, validate
public static final BooleanSerializer instance
public <V> java.lang.Boolean deserialize(V value, ValueAccessor<V> accessor)
deserialize
in class TypeSerializer<java.lang.Boolean>
public java.nio.ByteBuffer serialize(java.lang.Boolean value)
serialize
in class TypeSerializer<java.lang.Boolean>
public <V> void validate(V value, ValueAccessor<V> accessor) throws MarshalException
validate
in class TypeSerializer<java.lang.Boolean>
MarshalException
public java.lang.String toString(java.lang.Boolean value)
toString
in class TypeSerializer<java.lang.Boolean>
public java.lang.Class<java.lang.Boolean> getType()
getType
in class TypeSerializer<java.lang.Boolean>
Copyright © 2009-2021 The Apache Software Foundation