com.annimon.stream.operator.IntGenerate Maven / Gradle / Ivy
The newest version!
package com.annimon.stream.operator;
import com.landawn.abacus.util.function.IntSupplier;
import com.annimon.stream.iterator.PrimitiveIterator;
public class IntGenerate extends PrimitiveIterator.OfInt {
private final IntSupplier supplier;
public IntGenerate(IntSupplier supplier) {
this.supplier = supplier;
}
@Override
public boolean hasNext() {
return true;
}
@Override
public int nextInt() {
return supplier.getAsInt();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy