Package eliasstar.json.objects
Class JsonArray
- java.lang.Object
-
- eliasstar.json.objects.JsonArray
-
- All Implemented Interfaces:
JsonSerializable
public class JsonArray extends Object implements JsonSerializable
Represents a JSON array.- Since:
- 1.0.0
- Author:
- Elias*
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonArray
addValue(Object value)
JsonArray
addValue(Object value, int index)
void
clear()
boolean
equals(Object obj)
List<Object>
getAllValues()
Object
getValue(int index)
int
hashCode()
JsonArray
removeValue(Object value)
void
setAllValues(List<Object> values)
String
toJson()
String
toString()
-
-
-
Method Detail
-
getValue
public Object getValue(int index)
-
clear
public void clear()
-
toJson
public String toJson()
- Specified by:
toJson
in interfaceJsonSerializable
-
-