Package org.dellroad.stuff.vaadin7
Class SimpleQueryList<T>
- java.lang.Object
-
- org.dellroad.stuff.vaadin7.SimpleQueryList<T>
-
- All Implemented Interfaces:
QueryList<T>
public class SimpleQueryList<T> extends Object implements QueryList<T>
- See Also:
AbstractQueryContainer
-
-
Constructor Summary
Constructors Constructor Description SimpleQueryList(List<? extends T> list)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(long index)Get an item in the list, or throw an exception if this instance is no longer valid or cannot provide the item.longsize()Get the total size of this list.
-
-
-
Constructor Detail
-
SimpleQueryList
public SimpleQueryList(List<? extends T> list)
Constructor.- Parameters:
list- backing list- Throws:
IllegalArgumentException- iflistis null
-
-
Method Detail
-
size
public long size()
Description copied from interface:QueryListGet the total size of this list.For any given
QueryListinstance, 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.
-
-