Module net.luis.utils
Package net.luis.utils.io.codec
package net.luis.utils.io.codec
-
ClassDescriptionCodec<C>A codec is a combination of an encoder and a decoder.
It is used to encode and decode values of a specific type.A utility class that provides methods to create codec groupers that group multiple codecs into a single codec.ConfiguredCodec<C,O> A codec that is configured to encode and decode a specific component of an object.
This codec uses another codec to encode and decode the component.
The underlying codec is expected to be an instance ofNamedCodec
.KeyableCodec<C>Combines theCodec
,KeyableEncoder
andKeyableDecoder
interfaces.
Into one interface that provides all methods to encode and decode a value or a key.NamedCodec<C>A codec for encoding and decoding named values.
This codec uses another codec to encode and decode the value.ResultingFunction<T,R> Functional interface for mapping a value to a result.
This function is a more friendly variant ofFunction<T, Result<R>>
.
The main use case is to map a value to a result that may contain an error.Functional interface for mapping the type of aResult
.
This function is a more friendly variant ofFunction<Result<T>, Result<R>>
.