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

com.github.leeonky.dal.runtime.InfiniteDALCollection Maven / Gradle / Ivy

package com.github.leeonky.dal.runtime;

import java.util.Iterator;
import java.util.function.Supplier;

public class InfiniteDALCollection extends IterableDALCollection {
    public InfiniteDALCollection(Supplier supplier) {
        super(() -> new Iterator() {
            @Override
            public boolean hasNext() {
                return true;
            }

            @Override
            public E next() {
                return supplier.get();
            }
        });
    }

    @Override
    public boolean infinite() {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy