public class FloatAccessor extends Object implements PropertyAccessor<Float>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
FloatAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Float |
fromBytes(Class targetClass,
byte[] data)
From bytes.
|
private byte[] |
fromInt(int data)
From int.
|
Float |
fromString(Class targetClass,
String s)
Converts string representation to the data object whose type is T.
|
Float |
getCopy(Object object)
Gets copy of object
|
Float |
getInstance(Class<?> clazz) |
byte[] |
toBytes(Object object)
To bytes.
|
private int |
toInt(byte[] data)
To int.
|
String |
toString(Object object)
Converts Object to String.
|
public Float fromBytes(Class targetClass, byte[] data)
PropertyAccessorfromBytes in interface PropertyAccessor<Float>data - the bpublic byte[] toBytes(Object object)
PropertyAccessortoBytes in interface PropertyAccessor<Float>object - the objectpublic String toString(Object object)
PropertyAccessortoString in interface PropertyAccessor<Float>object - the objectprivate byte[] fromInt(int data)
data - the dataprivate int toInt(byte[] data)
data - the datapublic Float fromString(Class targetClass, String s)
PropertyAccessorfromString in interface PropertyAccessor<Float>s - the spublic Float getCopy(Object object)
PropertyAccessorgetCopy in interface PropertyAccessor<Float>public Float getInstance(Class<?> clazz)
getInstance in interface PropertyAccessor<Float>Copyright © 2015. All Rights Reserved.