public interface KeyConverter<T>
| Modifier and Type | Method and Description | 
|---|---|
| T | decode(byte[] bytes)Decodes a byte array and returns a key of type T. | 
| byte[] | encode(T key)Encodes a key as a byte array. | 
byte[] encode(T key)
key - key to be encoded.T decode(byte[] bytes)
bytes - byte representationCopyright © 2008–2023 Apache Software Foundation. All rights reserved.