implicit final class JsonSplitterOps[C] extends AnyVal
Adds splitter.asNullable[A]
, for handling possibly-null values in a JSON substream
- Source
- package.scala
- Alphabetic
- By Inheritance
- JsonSplitterOps
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JsonSplitterOps(splitter: JsonSplitter[C])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toany2stringadd[JsonSplitterOps[C]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (JsonSplitterOps[C], B)
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toArrowAssoc[JsonSplitterOps[C]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asNullable[A](implicit arg0: JsonParser[A]): JsonTransformer[Option[A]]
Alternative to
splitter.as[A]
which also acceptsnull
in place of the normal JSON forA
.Alternative to
splitter.as[A]
which also acceptsnull
in place of the normal JSON forA
.- A
Any type for which an implicit
JsonParser[A]
exists
- def ensuring(cond: (JsonSplitterOps[C]) => Boolean, msg: => Any): JsonSplitterOps[C]
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toEnsuring[JsonSplitterOps[C]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (JsonSplitterOps[C]) => Boolean): JsonSplitterOps[C]
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toEnsuring[JsonSplitterOps[C]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): JsonSplitterOps[C]
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toEnsuring[JsonSplitterOps[C]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): JsonSplitterOps[C]
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toEnsuring[JsonSplitterOps[C]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toStringFormat[JsonSplitterOps[C]] 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): (JsonSplitterOps[C], B)
- Implicit
- This member is added by an implicit conversion from JsonSplitterOps[C] toArrowAssoc[JsonSplitterOps[C]] 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.