Web Site

org.codehaus.janino.util.iterator
Class IteratorCollection

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byorg.codehaus.janino.util.iterator.IteratorCollection
All Implemented Interfaces:
Collection

public class IteratorCollection
extends AbstractCollection

A Collection that lazily reads its elements from an Iterator.


Constructor Summary
IteratorCollection(Iterator iterator)
           
 
Method Summary
 Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

IteratorCollection

public IteratorCollection(Iterator iterator)
Method Detail

iterator

public Iterator iterator()

size

public int size()

Web Site