com.mysema.query.paging
Class SimpleListSource<T>

java.lang.Object
  extended by com.mysema.query.paging.SimpleListSource<T>
Type Parameters:
T -
All Implemented Interfaces:
ListSource<T>

public class SimpleListSource<T>
extends Object
implements ListSource<T>

Author:
tiwe

Constructor Summary
SimpleListSource(List<T> list)
           
SimpleListSource(T... args)
           
 
Method Summary
 List<T> getResults(int fromIndex, int toIndex)
           
 boolean isEmpty()
           
 long size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleListSource

public SimpleListSource(List<T> list)

SimpleListSource

public SimpleListSource(T... args)
Method Detail

getResults

public List<T> getResults(int fromIndex,
                          int toIndex)
Specified by:
getResults in interface ListSource<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ListSource<T>

size

public long size()
Specified by:
size in interface ListSource<T>


Copyright © 2007-2009 Mysema Ltd. All Rights Reserved.