object KeyReader
- Alphabetic
- By Inheritance
- KeyReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[T](read: (String) => T): KeyReader[T]
Creates a KeyReader based on the given
read
function. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def bigDecimalKeyReader: KeyReader[BigDecimal]
- implicit def bigIntKeyReader: KeyReader[BigInt]
- implicit def byteKeyReader: KeyReader[Byte]
- implicit def charKeyReader: KeyReader[Char]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collect[T](read: PartialFunction[String, T]): KeyReader[T]
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 theread
function. - implicit def doubleKeyReader: KeyReader[Double]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def floatKeyReader: KeyReader[Float]
- def from[T](readTry: (String) => Try[T]): KeyReader[T]
Creates a KeyReader based on the given
readTry
function. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def intKeyReader: KeyReader[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def keyReader[T](implicit conv: (String) => T): KeyReader[T]
Provides a KeyReader instance of any
T
type that can be parsed from aString
. - implicit lazy val localeReader: KeyReader[Locale]
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)
- implicit def longKeyReader: KeyReader[Long]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def option[T](read: (String) => Option[T]): KeyReader[T]
Creates a KeyReader based on the given
read
function. - implicit def shortKeyReader: KeyReader[Short]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit lazy val uuidReader: KeyReader[UUID]
Supports reading
UUID
as keys.Supports reading
UUID
as keys.import reactivemongo.api.bson.KeyReader implicitly[KeyReader[java.util.UUID]]. readTry("BDE87A8B-52F6-4345-9BCE-A30F4CB9FCB4") // => Success(java.util.UUID{"BDE87A8B-52F6-4345-9BCE-A30F4CB9FCB4"})
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])