JAPI 0_6-alpha-2
Yet another Java API
API Documentation

net.sf.japi.util
Class IteratorEnumeration<T>

java.lang.Object
  extended by net.sf.japi.util.IteratorEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

public class IteratorEnumeration<T>
extends Object
implements Enumeration<T>

Enumeration proxy for Iterators. Instances are not reusable.

Author:
Christian Hujer

Constructor Summary
IteratorEnumeration(Iterator<T> iterator)
          Create an Enumeration for an Iterator.
 
Method Summary
 boolean hasMoreElements()
          
 T nextElement()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorEnumeration

public IteratorEnumeration(Iterator<T> iterator)
Create an Enumeration for an Iterator.

Parameters:
iterator - Iterator to create Enumeration for
Method Detail

hasMoreElements

public boolean hasMoreElements()

Specified by:
hasMoreElements in interface Enumeration<T>

nextElement

public T nextElement()

Specified by:
nextElement in interface Enumeration<T>

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright