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