|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JsonValue
JsonValue
provides methods that has to be implemented by every Json data type.
Nested Class Summary | |
---|---|
static class |
JsonValue.JsonType
JsonValue.JsonType includes all Json types that can be returned by getType() . |
Method Summary | |
---|---|
int |
compareTo(JsonValue value)
Compares the current instance with the passed JsonValue . |
JsonValue.JsonType |
getType()
Returns the type of the current instance. |
int |
size()
The size of the current instance. |
Methods inherited from interface de.hpi.fgis.dude.util.data.Jsonable |
---|
fromJson, toJson |
Method Detail |
---|
JsonValue.JsonType getType()
int size()
int compareTo(JsonValue value)
JsonValue
. Instances of different JsonValue.JsonType
s are ordered lexicographically except
for JsonValue.JsonType.Null
. The above mentioned requirements define the following order: null
== JsonValue.JsonType.Null
<
JsonValue.JsonType.Array
< JsonValue.JsonType.Boolean
< JsonValue.JsonType.Number
< JsonValue.JsonType.Record
< JsonValue.JsonType.String
.
compareTo
in interface Comparable<JsonValue>
Comparable.compareTo(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |