com.chargebee
Class ListResult

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<ListResult.Entry>
              extended by com.chargebee.ListResult
All Implemented Interfaces:
ApiResponse, Serializable, Cloneable, Iterable<ListResult.Entry>, Collection<ListResult.Entry>, List<ListResult.Entry>, RandomAccess

public class ListResult
extends ArrayList<ListResult.Entry>
implements ApiResponse

To represent list output of ChargeBee APIs (like getting list of subscriptions !!)

See Also:
Serialized Form

Nested Class Summary
static class ListResult.Entry
          represents each entry in this result-list
 
Field Summary
 int httpCode
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ListResult(int httpCode, org.json.JSONObject respJson)
           
 
Method Summary
 int httpCode()
           
 org.json.JSONObject jsonResponse()
           
 String nextOffset()
           
 String toString()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

httpCode

public final int httpCode
Constructor Detail

ListResult

public ListResult(int httpCode,
                  org.json.JSONObject respJson)
Method Detail

httpCode

public int httpCode()
Specified by:
httpCode in interface ApiResponse

jsonResponse

public org.json.JSONObject jsonResponse()
Specified by:
jsonResponse in interface ApiResponse

nextOffset

public String nextOffset()

toString

public String toString()
Overrides:
toString in class AbstractCollection<ListResult.Entry>


Copyright © 2018 ChargeBee. All Rights Reserved.