com.levigo.util.base.collections
Class EmptyEnumeratorIterator<T>

java.lang.Object
  extended by com.levigo.util.base.collections.EmptyEnumeratorIterator<T>
All Implemented Interfaces:
Enumeration<T>, Iterator<T>

public class EmptyEnumeratorIterator<T>
extends Object
implements Iterator<T>, Enumeration<T>

Just an useful base class to provide empty iterator and enumerator functionality.

Author:
Carolin Koehler

Constructor Summary
EmptyEnumeratorIterator()
           
 
Method Summary
 boolean hasMoreElements()
           
 boolean hasNext()
           
 T next()
           
 T nextElement()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyEnumeratorIterator

public EmptyEnumeratorIterator()
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<T>
See Also:
Enumeration.hasMoreElements()

nextElement

public T nextElement()
Specified by:
nextElement in interface Enumeration<T>
See Also:
Enumeration.nextElement()

remove

public void remove()
Specified by:
remove in interface Iterator<T>
See Also:
Iterator.remove()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>
See Also:
Iterator.hasNext()

next

public T next()
Specified by:
next in interface Iterator<T>
See Also:
Iterator.next()


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.