Class CodecsUtil
- java.lang.Object
-
- io.github.cbartosiak.bson.codecs.jsr310.internal.CodecsUtil
-
public final class CodecsUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Value> Value
getFieldValue(Document document, Object key, Class<Value> clazz)
static Document
readDocument(BsonReader reader, DecoderContext decoderContext, Map<String,Decoder<?>> fieldDecoders)
static <Value,Result>
ResulttranslateDecodeExceptions(Supplier<Value> valueSupplier, Function<Value,Result> valueConverter)
static <Value> void
translateEncodeExceptions(Supplier<Value> valueSupplier, Consumer<Value> valueConsumer)
-
-
-
Method Detail
-
translateEncodeExceptions
public static <Value> void translateEncodeExceptions(Supplier<Value> valueSupplier, Consumer<Value> valueConsumer)
-
translateDecodeExceptions
public static <Value,Result> Result translateDecodeExceptions(Supplier<Value> valueSupplier, Function<Value,Result> valueConverter)
-
readDocument
public static Document readDocument(BsonReader reader, DecoderContext decoderContext, Map<String,Decoder<?>> fieldDecoders)
-
-