com.endeca.collections.util
Class SizedIterable<T>

java.lang.Object
  extended by com.endeca.collections.util.SizedIterable<T>
All Implemented Interfaces:
java.lang.Iterable<T>

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


Constructor Summary
SizedIterable(java.lang.Iterable<T> iterable, int size)
           
 
Method Summary
 java.util.Iterator<T> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizedIterable

public SizedIterable(java.lang.Iterable<T> iterable,
                     int size)
Method Detail

size

public int size()

iterator

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