public static class JSONUtils.Array extends JSONUtils.Primitive
Constructor and Description |
---|
JSONUtils.Array() |
Modifier and Type | Method and Description |
---|---|
JSONUtils.Array |
add(boolean item)
Add an item to the array.
|
JSONUtils.Array |
add(Enum<?> item)
Add an item to the array.
|
JSONUtils.Array |
add(JSONUtils.Primitive item)
Add an item to the array.
|
JSONUtils.Array |
add(JSONUtils.Primitive[] items)
Add an array of items to the array.
|
JSONUtils.Array |
add(long item)
Add an item to the array.
|
JSONUtils.Array |
add(String item)
Add an item to the array.
|
boolean |
equals(Object o) |
JSONUtils.Primitive |
get(int index)
Get the entity at the specified index of this array.
|
int |
hashCode() |
JSONUtils.Array |
inline()
Mark the specified item to be formatted in-line.
|
int |
size()
Returns the number of items in this array.
|
isInline, toString
public JSONUtils.Array inline()
JSONUtils.Primitive
inline
in class JSONUtils.Primitive
public boolean equals(Object o)
equals
in class JSONUtils.Primitive
public int hashCode()
hashCode
in class JSONUtils.Primitive
public int size()
public JSONUtils.Primitive get(int index)
index
- entity indexpublic JSONUtils.Array add(JSONUtils.Primitive item)
item
- item to be addedNullPointerException
- if parameter is nullpublic JSONUtils.Array add(String item)
item
- item to be addedNullPointerException
- if parameter is nullpublic JSONUtils.Array add(long item)
item
- item to be addedpublic JSONUtils.Array add(boolean item)
item
- item to be addedpublic JSONUtils.Array add(Enum<?> item)
item
- item to be addedNullPointerException
- if parameter is nullpublic JSONUtils.Array add(JSONUtils.Primitive[] items)
items
- items to be addedNullPointerException
- if parameter is nullCopyright © 2015. All Rights Reserved.