public static final class JSON.Value extends Object
null
values.Modifier and Type | Method and Description |
---|---|
JSON.Array |
asArray()
Returns the value as JSON array.
|
Instant |
asInstant()
Returns the value as
Instant . |
int |
asInt()
Returns the value as int.
|
JSON |
asObject()
Returns the value as JSON object.
|
Problem |
asProblem()
Returns the value as
Problem . |
String |
asString()
Returns the value as
String . |
URI |
asURI()
Returns the value as
URI . |
URL |
asURL()
Returns the value as
URL . |
boolean |
equals(Object obj) |
int |
hashCode() |
JSON.Value |
required()
Checks if the value is present.
|
public JSON.Value required()
AcmeProtocolException
is thrown if
the value is null
.public String asString()
String
.String
, or null
if the value was not set.public JSON asObject()
JSON
, or null
if the value was not set.public Problem asProblem()
Problem
.Problem
, or null
if the value was not set.public JSON.Array asArray()
JSON.Array
, or null
if the value was not set.public int asInt()
public Instant asInstant()
Instant
.Instant
, or null
if the value was not set.Copyright © 2015–2019. All rights reserved.