T
- the type to decode into, the return type of the decode(org.bson.BsonReader, DecoderContext)
method.public interface Decoder<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(BsonReader reader,
DecoderContext decoderContext)
Decodes a BSON value from the given reader into an instance of the type parameter
T . |
T decode(BsonReader reader, DecoderContext decoderContext)
T
.reader
- the BSON readerdecoderContext
- the decoder contextT
.