E - the type of elements in this partial collection.public class BoxList<E extends BoxJsonObject> extends BoxJsonObject implements java.util.Collection<E>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<E> |
collection |
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 |
mProperties| Constructor and Description |
|---|
BoxList() |
BoxList(java.util.Map<java.lang.String,java.lang.Object> map)
Constructs a BoxList with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
fullSize()
Gets the size of the full collection that this partial collection is based off of.
|
E |
get(int index) |
java.util.ArrayList<BoxOrder> |
getSortOrders() |
int |
hashCode() |
boolean |
isEmpty() |
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.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
protected JsonValue |
parseJsonObject(java.util.Map.Entry<java.lang.String,java.lang.Object> entry) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
createFromJson, createFromJson, getPropertiesAsHashMap, parseNullJsonMember, toJson, toJsonObjectprotected final java.util.Collection<E extends BoxJsonObject> collection
public 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 BoxList()
public BoxList(java.util.Map<java.lang.String,java.lang.Object> map)
map - map of keys and values of the object.public java.lang.Long offset()
public java.lang.Long limit()
offset().public java.lang.Long fullSize()
protected void parseJSONMember(JsonObject.Member member)
BoxJsonObjectSubclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember in class BoxJsonObjectmember - the JSON member to be parsed.protected JsonValue parseJsonObject(java.util.Map.Entry<java.lang.String,java.lang.Object> entry)
parseJsonObject in class BoxJsonObjectpublic boolean add(E e)
add in interface java.util.Collection<E extends BoxJsonObject>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E extends BoxJsonObject>public void clear()
clear in interface java.util.Collection<E extends BoxJsonObject>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E extends BoxJsonObject>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E extends BoxJsonObject>public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<E extends BoxJsonObject>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<E extends BoxJsonObject>hashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.Collection<E extends BoxJsonObject>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E extends BoxJsonObject>iterator in interface java.util.Collection<E extends BoxJsonObject>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E extends BoxJsonObject>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E extends BoxJsonObject>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E extends BoxJsonObject>public int size()
size in interface java.util.Collection<E extends BoxJsonObject>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E extends BoxJsonObject>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E extends BoxJsonObject>public E get(int index)
public java.util.ArrayList<BoxOrder> getSortOrders()