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