Package com.twilio.base
Class ResourceSet<E extends Resource>
- java.lang.Object
-
- com.twilio.base.ResourceSet<E>
-
-
Constructor Summary
Constructors Constructor Description ResourceSet(Reader<E> reader, TwilioRestClient client, Page<E> page)Initialize the resource set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetLimit()longgetPageLimit()IntegergetPageSize()booleanisAutoPaging()Iterator<E>iterator()ResourceSetsetAutoPaging(boolean autoPaging)ResourceSet<E>setLimit(long limit)ResourceSet<E>setPageSize(int pageSize)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ResourceSet
public ResourceSet(Reader<E> reader, TwilioRestClient client, Page<E> page)
Initialize the resource set.- Parameters:
reader- reader used to fetch next pageclient- client used to make requestspage- page of data
-
-
Method Detail
-
isAutoPaging
public boolean isAutoPaging()
-
setAutoPaging
public ResourceSet setAutoPaging(boolean autoPaging)
-
getPageSize
public Integer getPageSize()
-
setPageSize
public ResourceSet<E> setPageSize(int pageSize)
-
getLimit
public Long getLimit()
-
setLimit
public ResourceSet<E> setLimit(long limit)
-
getPageLimit
public long getPageLimit()
-
-