public class UUIDAccessor extends Object implements PropertyAccessor<UUID>
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
UUIDAccessor() |
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
asByteArray(UUID uuid)
Returns as byte array.
|
UUID |
fromBytes(Class targetClass,
byte[] bytes)
From bytes.
|
UUID |
fromString(Class targetClass,
String s)
Converts string representation to the data object whose type is T.
|
UUID |
getCopy(Object object)
Gets copy of object
|
UUID |
getInstance(Class<?> clazz) |
byte[] |
toBytes(Object object)
To bytes.
|
String |
toString(Object object)
Converts Object to String.
|
public UUID fromBytes(Class targetClass, byte[] bytes) throws PropertyAccessException
PropertyAccessorfromBytes in interface PropertyAccessor<UUID>bytes - the bPropertyAccessException - the property access exceptionpublic byte[] toBytes(Object object) throws PropertyAccessException
PropertyAccessortoBytes in interface PropertyAccessor<UUID>object - the objectPropertyAccessException - the property access exceptionpublic String toString(Object object)
PropertyAccessortoString in interface PropertyAccessor<UUID>object - the objectpublic UUID fromString(Class targetClass, String s) throws PropertyAccessException
PropertyAccessorfromString in interface PropertyAccessor<UUID>s - the sPropertyAccessException - When string can't be converted to specified type, usually as
a result of NumberFormatExceptionprivate static byte[] asByteArray(UUID uuid)
uuid - UUIDpublic UUID getCopy(Object object)
PropertyAccessorgetCopy in interface PropertyAccessor<UUID>public UUID getInstance(Class<?> clazz)
getInstance in interface PropertyAccessor<UUID>Copyright © 2015. All Rights Reserved.