implicit final class Field extends AnyVal
Field wrapper
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Field
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Field(name: String)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (Field, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def \(child: String): Optional[BSONDocument, BSONDocument]
import _root_.monocle.Optional import reactivemongo.api.bson.BSONDocument import reactivemongo.api.bson.monocle._ val lens: Optional[BSONDocument, BSONDocument] = "foo" \ "bar"
- Annotations
- @inline()
- def \[T](child: Optional[BSONDocument, T]): Optional[BSONDocument, T]
import reactivemongo.api.bson.monocle._ // For a top document { "foo": { "bar": 1 } } val lens = "foo" \ field[Int]("bar") // equivalent to nested("foo", field[Int]("bar"))
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (Field) => Boolean, msg: => Any): Field
- def ensuring(cond: (Field) => Boolean): Field
- def ensuring(cond: Boolean, msg: => Any): Field
- def ensuring(cond: Boolean): Field
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Field toStringFormat[Field] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (Field, B)
- Implicit
- This member is added by an implicit conversion from Field toArrowAssoc[Field] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.