org.xwiki.rest
Class RangeIterable<T>

java.lang.Object
  extended by org.xwiki.rest.RangeIterable<T>
All Implemented Interfaces:
java.lang.Iterable<T>

public class RangeIterable<T>
extends java.lang.Object
implements java.lang.Iterable<T>

This class wraps a List and provides a view of it as if had only the elements that were included in the specified range (start, number)

Version:
$Id: RangeIterable.java 21281 2009-06-13 19:22:09Z sdumitriu $

Constructor Summary
RangeIterable(java.util.List<T> list, int start, int number)
           
 
Method Summary
 java.util.Iterator<T> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeIterable

public RangeIterable(java.util.List<T> list,
                     int start,
                     int number)
Method Detail

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>


Copyright © 2004-2009 XWiki. All Rights Reserved.