public final class InstantSerDe
extends Object
Utility class for serializing and deserializing
Instant.
-
Method Summary
Deserializes
Instant from byte array.
static byte[]
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
serialize
public static byte[] serialize(Instant instant)
- Parameters:
instant - Instant.
- Returns:
- Byte array.
-
deserialize
public static Instant deserialize(byte[] bytes)
Deserializes
Instant from byte array.
- Parameters:
bytes - Byte array.
- Returns:
- Instant.