object KeyReader
- Companion:
- class
Value members
Concrete methods
Creates a KeyReader based on the given partial function.
Creates a KeyReader based on the given partial function.
A exceptions.ValueDoesNotMatchException is returned as Failure
for any BSON value that is not matched by the read
function.
Implicits
Implicits
Supports reading locales as keys, using language tag as string representation.
Supports reading locales as keys, using language tag as string representation.
import reactivemongo.api.bson.KeyReader
implicitly[KeyReader[java.util.Locale]].readTry("fr-FR")
// => Success(Locale.FRANCE)