org.diirt.util.array.IteratorDouble Maven / Gradle / Ivy
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.util.array;
/**
* An iterator of {@code double}s.
*
* @author Gabriele Carcassi
*/
public abstract class IteratorDouble implements IteratorNumber {
@Override
public float nextFloat() {
return (float) nextDouble();
}
@Override
public byte nextByte() {
return (byte) nextDouble();
}
@Override
public short nextShort() {
return (short) nextDouble();
}
@Override
public int nextInt() {
return (int) nextDouble();
}
@Override
public long nextLong() {
return (long) nextDouble();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy