Class TypeConversion
java.lang.Object
de.eldoria.eldoutilities.serialization.TypeConversion
Class for simple type conversion.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getBytesFromUUID
(UUID uuid) Converts a UUID to a byte array.static UUID
getUUIDFromBytes
(byte[] bytes) Convers a byte array to UUID
-
Method Details
-
getBytesFromUUID
Converts a UUID to a byte array.- Parameters:
uuid
- UUID to convert- Returns:
- UUID as byte array
-
getUUIDFromBytes
Convers a byte array to UUID- Parameters:
bytes
- array to convert- Returns:
- byte array as UUID
-