@ForUseOnly public interface JsonStringValue extends JsonElement<String>
CAUTION:
This class is still in development and may change drastically without any further notice.Modifier and Type | Method and Description |
---|---|
static JsonStringValue |
of(String value)
Returns a new
json element wrapping the given value . |
static JsonStringValue |
of(UUID uuid)
|
static JsonElement<?> |
ofNullable(Object value)
Returns a new
json element wrapping the given value , or
JsonNullValue.NULL if the provided value is null . |
getValue
@NotNull static JsonStringValue of(@NotNull UUID uuid)
uuid
- the uuid
to wrap (must not be null
)json element
@NotNull static JsonStringValue of(@NotNull String value)
json element
wrapping the given value
.value
- the value
to wrap (must not be null
)json element
@NotNull static JsonElement<?> ofNullable(@Nullable Object value)
json element
wrapping the given value
, or
JsonNullValue.NULL
if the provided value is null
.value
- the value
to wrapjson element
or JsonNullValue.NULL
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210