@ForUseOnly public interface JsonPair extends JsonElement<JsonElement<?>>, Comparable<JsonPair>
JsonElement
.
A JsonPair can be part of a JsonObject
.
CAUTION:
This class is still in development and may change drastically without any further notice.JsonOutput
Modifier and Type | Method and Description |
---|---|
String |
getKey()
This method returns the current key of the pair.
|
JsonElement<?> |
getValue()
This method returns the current value of the pair.
|
static JsonPair |
of(String key,
JsonElement<?> value)
|
compareTo
@NotNull String getKey()
@NotNull JsonElement<?> getValue()
getValue
in interface JsonElement<JsonElement<?>>
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210