implicit final class JsonGeneratorType extends AnyVal
Provides extension methods to javax.json.stream.JsonGenerator
.
- See also
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsonGeneratorType
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new JsonGeneratorType(generator: JsonGenerator)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
-
def
write[T](name: String, value: T)(implicit writer: ObjectContextWriter[T]): JsonGenerator
Writes value in object context.
-
def
write(name: String, value: Try[JsonValue]): JsonGenerator
Writes value to object context if
Success
; otherwise, writes null ifFailure
. -
def
write(name: String, value: Option[JsonValue]): JsonGenerator
Writes value to object context if
Some
; otherwise, writes null ifNone
. -
def
write[T](value: T)(implicit writer: ArrayContextWriter[T]): JsonGenerator
Writes value in array context.
-
def
write(value: Try[JsonValue]): JsonGenerator
Writes value to array context if
Success
; otherwise, writes null ifFailure
. -
def
write(value: Option[JsonValue]): JsonGenerator
Writes value to array context if
Some
; otherwise, writes null ifNone
. -
def
writeNullable[T](name: String, value: T)(implicit writer: ObjectContextWriter[T]): JsonGenerator
Writes value in object context or writes null if value is null.
-
def
writeNullable[T](value: T)(implicit writer: ArrayContextWriter[T]): JsonGenerator
Writes value in array context or writes null if value is null.