All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.annimon.stream.operator.ObjGenerate Maven / Gradle / Ivy

The newest version!
package com.annimon.stream.operator;

import com.landawn.abacus.util.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