|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.paging.SimpleListSource<T>
T - public class SimpleListSource<T>
List based implementation of the ListSource interface
| Constructor Summary | |
|---|---|
SimpleListSource(List<T> list)
|
|
SimpleListSource(T... args)
|
|
| Method Summary | |
|---|---|
T |
getResult(int index)
|
List<T> |
getResults(int fromIndex,
int toIndex)
Get the results from the given start index to the given end index |
boolean |
isEmpty()
true, if not results could be found, otherwise false |
long |
size()
total amount of results |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleListSource(List<T> list)
public SimpleListSource(T... args)
| Method Detail |
|---|
public List<T> getResults(int fromIndex,
int toIndex)
ListSource
getResults in interface ListSource<T>fromIndex - start indextoIndex - end index
public boolean isEmpty()
ListSource
isEmpty in interface ListSource<T>public long size()
ListSource
size in interface ListSource<T>public T getResult(int index)
getResult in interface ListSource<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||