Interface JsonValue
- All Known Implementing Classes:
JsonValue.Array, JsonValue.Bool, JsonValue.DoubleValue, JsonValue.Int, JsonValue.Null, JsonValue.ObjectValue, JsonValue.StringValue, JsonValue.UInt
public sealed interface JsonValue
permits JsonValue.Null, JsonValue.Bool, JsonValue.UInt, JsonValue.Int, JsonValue.DoubleValue, JsonValue.StringValue, JsonValue.Array, JsonValue.ObjectValue
Immutable JSON-like value tree used by Maplibre descriptors and copied results.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordOrdered JSON object member.static final classSingleton JSON null value.static final recordstatic final recordstatic final record -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic JsonValue.Arraystatic JsonValue.Nullstatic JsonValue.ObjectValueobject(List<JsonValue.Member> members) static JsonValue.Boolof(boolean value) static JsonValue.DoubleValueof(double value) static JsonValue.Intof(long value) static JsonValue.StringValuestatic JsonValue.UIntunsigned(long value)
-
Field Details
-
MAX_DESCRIPTOR_DEPTH
static final int MAX_DESCRIPTOR_DEPTH- See Also:
-
-
Method Details
-
nullValue
-
of
-
unsigned
-
of
-
of
-
of
-
array
-
object
-