public interface QueryList<T>
AbstractQueryContainer.
Instances contain a list of Java objects (or some portion thereof), and may become invalid over time.AbstractQueryContainer| Modifier and Type | Method and Description |
|---|---|
T |
get(long index)
Get an item in the list, or throw an exception if this instance is no longer valid
or cannot provide the item.
|
long |
size()
Get the total size of this list.
|
long size()
For any given QueryList instance, this method is expected to return a the same value if invoked multiple times.
Therefore, callers may safely choose to invoke it only once on a given instance and cache the result.
T get(long index) throws InvalidQueryListException
index - index of the item (zero-based)indexIndexOutOfBoundsException - if index is less than zero or greater than or equal to size()InvalidQueryListException - if this list has become invalid or cannot provide the itemCopyright © 2017. All rights reserved.