ProblemObject

A JSON object as an extension value. Implements Map<String, ProblemValue> by delegation, so members can be read with [] and iterated directly.

This is the nesting an extension member is allowed, and the reason both codecs are bounded by Problem.MAX_NESTING_DEPTH.

Constructors

Link copied to clipboard
constructor(entries: Map<String, ProblemValue>)

Properties

Link copied to clipboard

The scalar parsed as a Boolean.

Link copied to clipboard

The scalar parsed as a Boolean, or null if this value is not a scalar or is not true/false.

Link copied to clipboard

The scalar parsed as a Double. Reads the wire literal, so a quoted "1.5" also returns 1.5.

Link copied to clipboard

The scalar parsed as a Double, or null if this value is not a scalar or does not parse.

Link copied to clipboard
open override val entries: Set<Map.Entry<String, ProblemValue>>
Link copied to clipboard

The scalar parsed as an Int.

Link copied to clipboard

The scalar parsed as an Int, or null if this value is not a scalar or does not parse.

Link copied to clipboard
open override val keys: Set<String>
Link copied to clipboard

The scalar parsed as a Long. Reads the wire literal, so a quoted "30" also returns 30.

Link copied to clipboard

The scalar parsed as a Long, or null if this value is not a scalar or does not parse.

Link copied to clipboard

This value as a scalar.

Link copied to clipboard

This value as a scalar, or null if it is an array, an object or ProblemNull.

Link copied to clipboard

This value as an array.

Link copied to clipboard

This value as an array, or null if it is anything else.

Link copied to clipboard

This value as an object.

Link copied to clipboard

This value as an object, or null if it is anything else.

Link copied to clipboard
open override val size: Int
Link copied to clipboard

The scalar's wire literal as text, with the quotes of a JSON string already removed.

Link copied to clipboard

The scalar's wire literal as text, or null if this value is not a scalar.

Link copied to clipboard
open override val values: Collection<ProblemValue>

Functions

Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: ProblemValue): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares the contained members against any Map, not only another ProblemObject, for the same reason ProblemArray.equals compares against any List.

Link copied to clipboard
open operator override fun get(key: String): ProblemValue?
Link copied to clipboard
open override fun hashCode(): Int

The contained map's own hash, so an equal plain Map hashes the same.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open override fun toString(): String

The object as it would be written to a JSON document.