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