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