public class SimpleQueryList<T> extends Object implements QueryList<T>
AbstractQueryContainer| Constructor and Description |
|---|
SimpleQueryList(List<? extends T> list)
Constructor.
|
| 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.
|
public SimpleQueryList(List<? extends T> list)
list - backing listIllegalArgumentException - if list is nullpublic long size()
QueryList
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.
Copyright © 2017. All rights reserved.