Class ParameterCodec
-
- All Implemented Interfaces:
@JvmRecord() public final class ParameterCodec<B extends ByteBuf, C extends Object, V extends Object> extends Record
BiCodec.compositeやMapBiCodec.compositeで引数を表すクラスです。
- Since:
0.1.0
Hiiragi Tsubasa
-
-
Method Summary
Modifier and Type Method Description final MapCodec<V>getCodec()final StreamCodec<B, V>getStreamCodec()final Function<C, V>getGetter()final RecordCodecBuilder<C, V>toRecordParam()final static <B extends ByteBuf, C extends Any, V extends Any> ParameterCodec<B, C, V>of(MapCodec<V> codec, StreamCodec<B, V> streamCodec, Function<C, V> getter)final static <B extends ByteBuf, C extends Any, V extends Any> ParameterCodec<B, C, V>of(MapBiCodec<B, V> codec, Function<C, V> getter)
-