org.chenillekit.tapestry.core.internal
Class PagedSource<T>

java.lang.Object
  extended by org.chenillekit.tapestry.core.internal.PagedSource<T>
All Implemented Interfaces:
Iterable<T>

public class PagedSource<T>
extends Object
implements Iterable<T>

Provides an implementation that will only iterate over the objects within the range provided when prepare() is called.

Version:
$Id: PagedSource.java 361 2008-11-25 13:05:14Z homburgs $

Constructor Summary
PagedSource(Iterable<T> source)
           
 
Method Summary
 int getTotalRowCount()
           
 Iterator<T> iterator()
           
 void prepare(int startIndex, int endIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagedSource

public PagedSource(Iterable<T> source)
Method Detail

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>
Returns:
See Also:
Iterable.iterator()

getTotalRowCount

public int getTotalRowCount()

prepare

public void prepare(int startIndex,
                    int endIndex)


Copyright © 2008-2010 ChenilleKit. All Rights Reserved.