Optionally parses this value as a T
one.
Optionally parses this value as a T
one.
Some
successfully parsed value, or None
if fails
import scala.util.Try import reactivemongo.api.bson.BSONValue def foo(v: BSONValue): Option[String] = v.asOpt[String]
Tries to parse this value as a T
one.
Tries to parse this value as a T
one.
import scala.util.Try import reactivemongo.api.bson.BSONValue def foo(v: BSONValue): Try[String] = v.asTry[String]
The code indicating the BSON type for this value
The code indicating the BSON type for this value
the high-order 64 bits
Returns true if is infinite.
Returns true if is Not-A-Number (NaN).
Returns true if is negative.
the low-order 64 bits
Returns the string representation.
Returns the string representation.
Value wrapper for a BSON 128-bit decimal.