-
- All Implemented Interfaces:
public final class ExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static UnitencodeNullableString(Encoder $self, String value)final static StringdecodeNullableString(Decoder $self)final static <Value extends Any> UnitencodeSet(Encoder $self, Set<Value> obj, TypeEncoder<Value> valueEncoder)final static <Value extends Any> Set<Value>decodeSet(Decoder $self, TypeDecoder<Value> valueDecoder)final static UnitencodeMap(Encoder $self, Map<String, Object> obj)final static <Key extends Any, Value extends Any> UnitencodeMap(Encoder $self, Map<Key, Value> obj, TypeEncoder<Key> keyEncoder, TypeEncoder<Value> valueEncoder)final static Map<String, Object>decodeMap(Decoder $self)final static <Key extends Any, Value extends Any> Map<Key, Value>decodeMap(Decoder $self, TypeDecoder<Key> keyDecoder, TypeDecoder<Value> valueDecoder)final static <T extends Any> UnitencodeList(Encoder $self, List<T> items, Function2<Encoder, T, Unit> callback)final static <T extends Any> List<T>decodeList(Decoder $self, Function1<Decoder, T> callback)-
-
Method Detail
-
encodeNullableString
final static Unit encodeNullableString(Encoder $self, String value)
-
decodeNullableString
final static String decodeNullableString(Decoder $self)
-
encodeSet
final static <Value extends Any> Unit encodeSet(Encoder $self, Set<Value> obj, TypeEncoder<Value> valueEncoder)
-
decodeSet
final static <Value extends Any> Set<Value> decodeSet(Decoder $self, TypeDecoder<Value> valueDecoder)
-
encodeMap
final static <Key extends Any, Value extends Any> Unit encodeMap(Encoder $self, Map<Key, Value> obj, TypeEncoder<Key> keyEncoder, TypeEncoder<Value> valueEncoder)
-
decodeMap
final static <Key extends Any, Value extends Any> Map<Key, Value> decodeMap(Decoder $self, TypeDecoder<Key> keyDecoder, TypeDecoder<Value> valueDecoder)
-
encodeList
final static <T extends Any> Unit encodeList(Encoder $self, List<T> items, Function2<Encoder, T, Unit> callback)
-
decodeList
final static <T extends Any> List<T> decodeList(Decoder $self, Function1<Decoder, T> callback)
-
-
-
-