PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

java.util
Interface Iterator

All Known Subinterfaces:
ListIterator
All Known Implementing Classes:
java.util.Hashtable.EmptyIterator, java.util.TreeMap.EntryIterator, java.util.Hashtable.Enumerator, java.util.WeakHashMap.HashIterator, java.util.HashMap.HashIterator, java.util.IdentityHashMap.IdentityHashMapIterator, java.util.AbstractList.Itr, java.util.LinkedHashMap.LinkedHashIterator, java.util.LinkedList.ListItr, java.util.AbstractList.ListItr

public interface Iterator

Untamed:


Method Summary
boolean hasNext()
Enabled: Returns true if the iteration has more elements.
Object next()
Enabled: Returns the next element in the iteration.
void remove()
Enabled: Removes from the underlying collection the last element returned by the iterator (optional operation).

Method Detail

hasNext

public boolean hasNext()
Enabled: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:
true if the iterator has more elements.

next

public Object next()
Enabled: Returns the next element in the iteration.

Returns:
the next element in the iteration.

remove

public void remove()
Enabled: Removes from the underlying collection the last element returned by the iterator (optional operation). This method can be called only once per call to next. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.


PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

comments?

AltStyle によって変換されたページ (->オリジナル) /