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

java.lang.Object
  extended by com.mysema.query.paging.ListSourceBase<T>
All Implemented Interfaces:
ListSource<T>

public abstract class ListSourceBase<T>
extends Object
implements ListSource<T>

ListSourceBase provides

Version:
$Id$
Author:
tiwe

Constructor Summary
ListSourceBase(CallbackService callbackService, long size)
           
 
Method Summary
static
<T> ListSource<T>
emptyResults()
           
protected abstract  List<T> getInnerResults(int fromIndex, int toIndex)
           
 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

ListSourceBase

public ListSourceBase(CallbackService callbackService,
                      long size)
Method Detail

emptyResults

public static <T> ListSource<T> emptyResults()

getInnerResults

protected abstract List<T> getInnerResults(int fromIndex,
                                           int toIndex)

getResults

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

isEmpty

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

size

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


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