Example usage for org.apache.commons.collections.primitives.adapters DoubleIteratorIterator wrap

List of usage examples for org.apache.commons.collections.primitives.adapters DoubleIteratorIterator wrap

Introduction

In this page you can find the example usage for org.apache.commons.collections.primitives.adapters DoubleIteratorIterator wrap.

Prototype

public static Iterator wrap(DoubleIterator iterator) 

Source Link

Document

Create an Iterator Iterator wrapping the specified DoubleIterator DoubleIterator .

Usage

From source file:com.martinkampjensen.thesis.util.gromacs.EnergyExtractor.java

/**
 * {@inheritDoc}/* ww  w  .j a  v a  2  s. com*/
 * <p>
 * Note that internally, values are stored as <code>double</code> values
 * which means that using the iterator returned by this method will result
 * in boxing and unboxing from/to {@link Double}.
 */
@SuppressWarnings("unchecked")
@Override
public Iterator<Double> iterator() {
    return DoubleIteratorIterator.wrap(this);
}