Package com.chargebee
Class ListResult
- All Implemented Interfaces:
ApiResponse,Serializable,Cloneable,Iterable<ListResult.Entry>,Collection<ListResult.Entry>,List<ListResult.Entry>,RandomAccess
To represent list output of ChargeBee APIs (like getting list of subscriptions !!)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classrepresents each entry in this result-list -
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionListResult(int httpCode, org.json.JSONObject respJson) ListResult(int httpCode, org.json.JSONObject respJson, Map<String, List<String>> responseHeaders) -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Field Details
-
httpCode
public final int httpCode -
responseHeaders
-
-
Constructor Details
-
ListResult
public ListResult(int httpCode, org.json.JSONObject respJson) -
ListResult
-
-
Method Details
-
httpCode
public int httpCode()- Specified by:
httpCodein interfaceApiResponse
-
getResponseHeaders
-
jsonResponse
public org.json.JSONObject jsonResponse()- Specified by:
jsonResponsein interfaceApiResponse
-
nextOffset
-
toString
- Overrides:
toStringin classAbstractCollection<ListResult.Entry>
-