E - the type of elements in this partial collection.public abstract class BoxIterator<E extends BoxJsonObject> extends BoxJsonObject implements java.lang.Iterable<E>
BoxJsonObject.BoxJsonObjectCreator<E extends BoxJsonObject>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_ENTRIES |
static java.lang.String |
FIELD_LIMIT |
static java.lang.String |
FIELD_OFFSET |
static java.lang.String |
FIELD_ORDER |
static java.lang.String |
FIELD_TOTAL_COUNT |
| Constructor and Description |
|---|
BoxIterator() |
BoxIterator(com.eclipsesource.json.JsonObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
createFromJson(com.eclipsesource.json.JsonObject object)
Creates the BoxJsonObject from a JsonObject
|
java.lang.Long |
fullSize()
Gets the size of the full collection that this partial collection is based off of.
|
E |
get(int index) |
E |
getAs(BoxJsonObject.BoxJsonObjectCreator<E> creator,
int index) |
java.util.ArrayList<E> |
getEntries() |
protected abstract BoxJsonObject.BoxJsonObjectCreator<E> |
getObjectCreator() |
java.util.ArrayList<BoxOrder> |
getSortOrders() |
java.util.Iterator<E> |
iterator() |
java.lang.Long |
limit()
Gets the maximum number of items within the full collection that begin at
offset(). |
java.lang.Long |
offset()
Gets the offset within the full collection where this collection's items begin.
|
int |
size() |
addInJsonArray, addInJsonArray, createFromJson, equals, getBoxJsonObjectCreator, getPropertiesKeySet, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsJsonArray, getPropertyAsJsonObject, getPropertyAsJsonObjectArray, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringHashSet, getPropertyValue, hashCode, parseJSONMember, remove, set, set, set, set, set, set, set, set, set, toJson, toJsonObjectpublic static final java.lang.String FIELD_ORDER
public static final java.lang.String FIELD_TOTAL_COUNT
public static final java.lang.String FIELD_ENTRIES
public static final java.lang.String FIELD_OFFSET
public static final java.lang.String FIELD_LIMIT
public BoxIterator()
public BoxIterator(com.eclipsesource.json.JsonObject jsonObject)
public void createFromJson(com.eclipsesource.json.JsonObject object)
BoxJsonObjectcreateFromJson in class BoxJsonObjectobject - json object to parse.public java.lang.Long offset()
public java.lang.Long limit()
offset().public java.lang.Long fullSize()
public int size()
public java.util.ArrayList<E> getEntries()
public E get(int index)
protected abstract BoxJsonObject.BoxJsonObjectCreator<E> getObjectCreator()
public E getAs(BoxJsonObject.BoxJsonObjectCreator<E> creator, int index)
public java.util.ArrayList<BoxOrder> getSortOrders()
public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E extends BoxJsonObject>