|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.util.Enumerator
public class Enumerator
Converts an Enumeration into an Iterator.
| Constructor Summary | |
|---|---|
Enumerator(java.util.Enumeration e)
Creates a new enumerator from the specified enumeration. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iterator has more elements. |
java.lang.Object |
next()
Returns the next element in the iteration. |
void |
remove()
Operation not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Enumerator(java.util.Enumeration e)
e - enumeration that needs to be treated as an iterator.| Method Detail |
|---|
public boolean hasNext()
true if the iterator has more elements.
(In other words, returns true if next would return an element rather than throwing an exception.)
hasNext in interface java.util.Iteratortrue if the iterator has more elements, false otherwise.
public java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementException - if there is no next element in the iteration.public void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - whenever this method is called.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard