List of usage examples for org.apache.commons.collections.primitives.adapters DoubleIteratorIterator wrap
public static Iterator wrap(DoubleIterator iterator)
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); }