public class UuidKeyEncoder extends KeyEncoder<java.util.UUID>
UuidKeyEncoder
is an implementation of a KeyEncoder
for UUID
keys compatible with the SOSS-JNC API.Constructor and Description |
---|
UuidKeyEncoder()
Construct a key encoder for
UUID keys. |
Modifier and Type | Method and Description |
---|---|
KeyEncodingResult |
encode(java.util.UUID key)
Encodes the
UUID key. |
java.util.UUID |
fromBytes(byte[] keyAsBytes)
Returns the original byte[] key.
|
public java.util.UUID fromBytes(byte[] keyAsBytes)
fromBytes
in class KeyEncoder<java.util.UUID>
keyAsBytes
- the 32 byte encoded keypublic KeyEncodingResult encode(java.util.UUID key)
UUID
key.encode
in class KeyEncoder<java.util.UUID>
key
- the UUID
keyKeyEncodingResult