com.annimon.stream.operator.ObjGenerate Maven / Gradle / Ivy
The newest version!
package com.annimon.stream.operator;
import com.annimon.stream.function.Supplier;
import com.annimon.stream.iterator.LsaIterator;
public class ObjGenerate extends LsaIterator {
private final Supplier supplier;
public ObjGenerate(Supplier supplier) {
this.supplier = supplier;
}
@Override
public boolean hasNext() {
return true;
}
@Override
public T nextIteration() {
return supplier.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy