Package com.scaleout.client.caching
Class IntegerKeyEncoder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEncodes theInteger
key into aKeyEncodingResult
fromBytes
(byte[] keyAsBytes) Retrieves the Integer key.
-
Constructor Details
-
IntegerKeyEncoder
public IntegerKeyEncoder()Construct aKeyEncoder
forInteger
keys.
-
-
Method Details
-
fromBytes
Retrieves the Integer key.- Specified by:
fromBytes
in classKeyEncoder<Integer>
- Parameters:
keyAsBytes
- the 32 byte encoded key- Returns:
- the Integer key
-
encode
Encodes theInteger
key into aKeyEncodingResult
- Specified by:
encode
in classKeyEncoder<Integer>
- Parameters:
key
- theInteger
key- Returns:
- the
KeyEncodingResult
-