Package org.opendaylight.raft.journal
Interface FromByteBufMapper<T>
- Type Parameters:
T
- Internal representation type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for transforming bytes into their internal representation.
-
Method Summary
Modifier and TypeMethodDescriptionbytesToObject
(long index, ByteBuf bytes) Converts the contents of aByteBuf
to an object.
-
Method Details
-
bytesToObject
Converts the contents of aByteBuf
to an object.- Parameters:
index
- entry indexbytes
- entry bytes- Returns:
- resulting object
-