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.adapters
Class DoubleIteratorIterator

    java.lang.Object
      org.apache.commons.collections.primitives.adapters.DoubleIteratorIterator

All Implemented Interfaces:
  Iterator

public class DoubleIteratorIterator
extends Object
implements Iterator

Adapts an `DoubleIterator` to the `Iterator` interface.

This implementation delegates most methods to the provided `DoubleIterator` implementation in the "obvious" way.

Since:
  Commons Primitives 1.0
Version:
  $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $
Author:
  Rodney Waldhoff

Constructor Summary
`DoubleIteratorIterator(DoubleIterator iterator)` Creates an `Iterator` wrapping the specified `DoubleIterator`.

Method Summary
`boolean` | `hasNext()`
`Object` | `next()`
`void` | `remove()`
`static Iterator` | `wrap(DoubleIterator iterator)` Create an `Iterator` wrapping the specified `DoubleIterator`.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DoubleIteratorIterator

    public DoubleIteratorIterator(DoubleIterator iterator)

  Creates an `Iterator` wrapping the specified `DoubleIterator`.

See Also:
  `wrap(org.apache.commons.collections.primitives.DoubleIterator)`

Method Detail

### wrap

    public static Iterator wrap(DoubleIterator iterator)

  Create an `Iterator` wrapping the specified `DoubleIterator`. When the given iterator is `null`, returns `null`.

  Parameters:
    `iterator` - the (possibly `null`) `DoubleIterator` to wrap
  Returns:
    an `Iterator` wrapping the given iterator, or `null` when iterator is `null`.

### hasNext

    public boolean hasNext()

  Specified by:
    `hasNext` in interface `Iterator`

### next

    public Object next()

  Specified by:
    `next` in interface `Iterator`

### remove

    public void remove()

  Specified by:
    `remove` in interface `Iterator`

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.