public static final class ByteArrayUtil.FloatSerializer extends java.lang.Object implements FixedSizeByteBufferSerializer<java.lang.Float>
Modifier | Constructor and Description |
---|---|
private |
FloatSerializer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Float |
fromByteBuffer(java.nio.ByteBuffer buffer)
Deprecated.
|
int |
getByteSize(java.lang.Float object)
Deprecated.
|
int |
getFixedByteSize()
Get the fixed size needed by this serializer.
|
void |
toByteBuffer(java.nio.ByteBuffer buffer,
java.lang.Float obj)
Deprecated.
|
private FloatSerializer()
@Deprecated public java.lang.Float fromByteBuffer(java.nio.ByteBuffer buffer)
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<java.lang.Float>
buffer
- Data array to process@Deprecated public void toByteBuffer(java.nio.ByteBuffer buffer, java.lang.Float obj)
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<java.lang.Float>
buffer
- Buffer to serialize toobj
- Object to serialize@Deprecated public int getByteSize(java.lang.Float object)
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<java.lang.Float>
object
- Object to serializepublic int getFixedByteSize()
FixedSizeByteBufferSerializer
getFixedByteSize
in interface FixedSizeByteBufferSerializer<java.lang.Float>
Copyright © 2019 ELKI Development Team. License information.