public abstract class AbstractResourceList<E> extends AbstractResource implements Iterable<E>
Modifier and Type | Field and Description |
---|---|
static String |
LIST_INFO |
static String |
NUM_PAGES |
static String |
NUM_RESULTS |
static String |
PAGE |
static String |
PAGE_SIZE |
dataObj, warnings
Modifier | Constructor and Description |
---|---|
protected |
AbstractResourceList(org.json.JSONObject json,
String listKey) |
Modifier and Type | Method and Description |
---|---|
List<E> |
filterCurrentPageBy(String columnName,
Serializable filterValue)
Filters the current page of results by the given column and value.
|
List<E> |
getCurrentPageList()
Returns the current page of results for this list object.
|
Integer |
getNumPages() |
Integer |
getNumResults() |
Integer |
getPage() |
Integer |
getPageSize() |
Iterator<E> |
iterator() |
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String LIST_INFO
public static final String PAGE
public static final String NUM_PAGES
public static final String NUM_RESULTS
public static final String PAGE_SIZE
protected AbstractResourceList(org.json.JSONObject json, String listKey) throws HelloSignException
HelloSignException
public Integer getPage()
public Integer getNumPages()
public Integer getNumResults()
public Integer getPageSize()
public List<E> getCurrentPageList() throws HelloSignException
HelloSignException
- thrown if the list cannot be generatedpublic List<E> filterCurrentPageBy(String columnName, Serializable filterValue) throws HelloSignException
columnName
- String column name to filter byfilterValue
- Serializable matching valueHelloSignException
- thrown if the column name is invalidCopyright © 2017 HelloSign. All rights reserved.