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

## org.apache.commons.collections.primitives
Interface IntIterator

All Known Subinterfaces:
  IntListIterator

All Known Implementing Classes:
  IteratorIntIterator, ListIteratorIntListIterator, org.apache.commons.collections.primitives.decorators.ProxyIntIterator, org.apache.commons.collections.primitives.decorators.ProxyIntListIterator, RandomAccessIntList.RandomAccessIntListIterator

public interface IntIterator

An iterator over `int` values.

Since:
  Commons Primitives 1.0
Version:
  $Revision: 1.3 $ $Date: 2003/10/16 20:49:36 $
Author:
  Rodney Waldhoff
See Also:
  `IntIteratorIterator`, `IteratorIntIterator`

Method Summary
`boolean` | `hasNext()` Returns `true` iff I have more elements.
`int` | `next()` Returns the next element in me.
`void` | `remove()` Removes from my underlying collection the last element `returned` by me (optional operation).

Method Detail

### hasNext

    public boolean hasNext()

  Returns `true` iff I have more elements. (In other words, returns `true` iff a subsequent call to `next` will return an element rather than throwing an exception.)

  Returns:
    `true` iff I have more elements

### next

    public int next()

  Returns the next element in me.

  Returns:
    the next element in me
  Throws:
    `NoSuchElementException` - if there is no next element

### remove

    public void remove()

  Removes from my underlying collection the last element `returned` by me (optional operation).

  Throws:
    `UnsupportedOperationException` - if this operation is not supported
    `IllegalStateException` - if `next()` has not yet been called, or `remove()` has already been called since the last call to `next()`.

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

Copyright © 2002-2003 Apache Software Foundation. All Rights Reserved.