Iterator
Keywords: weiss.util.Iterator interface

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weiss.util
Interface Iterator<AnyType>

All Superinterfaces:
  java.util.Iterator<AnyType>

All Known Subinterfaces:
  ListIterator<AnyType>

    public interface Iterator<AnyType>

extends java.util.Iterator<AnyType>

Iterator interface for Collections.

Method Summary
`boolean` | `hasNext()` Tests if there are more items in the collection.
`AnyType` | `next()` Obtains the next item in the collection.
`void` | `remove()` Remove the last item returned by next.

Method Detail

### hasNext

    boolean hasNext()

  Tests if there are more items in the collection.

  Specified by:
    `hasNext` in interface `java.util.Iterator<AnyType>`
  Returns:
    true if there are more items in the collection.

### next

    AnyType next()

  Obtains the next item in the collection.

  Specified by:
    `next` in interface `java.util.Iterator<AnyType>`
  Returns:
    the next (as yet unseen) item in the collection.

### remove

    void remove()

  Remove the last item returned by next. Can only be called once after next.

  Specified by:
    `remove` in interface `java.util.Iterator<AnyType>`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD