org.epics.util.array.IteratorFloat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epics-util Show documentation
Show all versions of epics-util Show documentation
Basic Java utility classes to be shared across projects until
suitable replacements are available in the JDK.
/**
* Copyright (C) 2012 Brookhaven National Laboratory
* All rights reserved. Use is subject to license terms.
*/
package org.epics.util.array;
/**
* An iterator of {@code float}s.
*
* @author Gabriele Carcassi
*/
public abstract class IteratorFloat implements IteratorNumber {
@Override
public double nextDouble() {
return (double) nextFloat();
}
@Override
public byte nextByte() {
return (byte) nextFloat();
}
@Override
public short nextShort() {
return (short) nextFloat();
}
@Override
public int nextInt() {
return (int) nextFloat();
}
@Override
public long nextLong() {
return (long) nextFloat();
}
}