com.mysema.query.paging
Interface ListSource<T>

All Known Implementing Classes:
EmptyListSource, SimpleListSource

public interface ListSource<T>

ListSource provides a view on paged search results

Version:
$Id$
Author:
tiwe

Method Summary
 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
 

Method Detail

isEmpty

boolean isEmpty()
true, if not results could be found, otherwise false

Returns:

size

long size()
total amount of results

Returns:

getResults

List<T> getResults(int fromIndex,
                   int toIndex)
Get the results from the given start index to the given end index

Parameters:
fromIndex - start index
toIndex - end index
Returns:


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