object KeyWriter extends LowPriorityKeyWriter
KeyWriter factories
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KeyWriter
- LowPriorityKeyWriter
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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
- implicit def anyValKeyWriter[T <: AnyVal]: KeyWriter[T]
- Definition Classes
- LowPriorityKeyWriter
- def apply[T](write: (T) => String): KeyWriter[T]
Creates a KeyWriter based on the given
write
function. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def from[T](writeTry: (T) => Try[String]): KeyWriter[T]
Creates a KeyWriter based on the given
writeTry
function. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def keyWriter[T](implicit conv: (T) => String): KeyWriter[T]
Provides a KeyWriter instance of any
T
type that can be viewed as aString
. - implicit def localeWriter: KeyWriter[Locale]
Supports writing locales as keys, using language tag as string representation.
Supports writing locales as keys, using language tag as string representation.
import reactivemongo.api.bson.KeyWriter implicitly[KeyWriter[java.util.Locale]].writeTry(java.util.Locale.FRANCE) // => Success("fr-FR")
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit def uuidWriter: KeyWriter[UUID]
Supports writing
UUID
as keys.Supports writing
UUID
as keys.import reactivemongo.api.bson.KeyWriter implicitly[KeyWriter[java.util.UUID]].writeTry( java.util.UUID fromString "BDE87A8B-52F6-4345-9BCE-A30F4CB9FCB4") // => Success("BDE87A8B-52F6-4345-9BCE-A30F4CB9FCB4")
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()