public class FloatArraySerializer extends ArraySerializer implements AttributeSerializer<float[]>
| Constructor and Description |
|---|
FloatArraySerializer() |
| Modifier and Type | Method and Description |
|---|---|
float[] |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
protected Object |
getArray(int length) |
float[] |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
protected void |
setArray(Object array,
int pos,
Object value) |
void |
write(WriteBuffer buffer,
float[] attribute)
Writes the attribute value to the given WriteBuffer.
|
getLength, isArrayOf, isIterableOf, writeLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifyAttributepublic float[] convert(Object value)
AttributeSerializerIllegalArgumentException if it cannot be converted.convert in interface AttributeSerializer<float[]>value - to convertprotected Object getArray(int length)
getArray in class ArraySerializerprotected void setArray(Object array, int pos, Object value)
setArray in class ArraySerializerpublic float[] read(ScanBuffer buffer)
AttributeSerializerread in interface AttributeSerializer<float[]>buffer - ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, float[] attribute)
AttributeSerializerwrite in interface AttributeSerializer<float[]>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferCopyright © 2012–2015. All rights reserved.