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

com.github.leeonky.jfactory.UnFixedValueProducer Maven / Gradle / Ivy

package com.github.leeonky.jfactory;

import com.github.leeonky.util.BeanClass;

import java.util.function.Supplier;

class UnFixedValueProducer extends Producer {
    private final Supplier supplier;

    public UnFixedValueProducer(Supplier supplier, BeanClass type) {
        super(type);
        this.supplier = supplier;
    }

    @Override
    protected T produce() {
        return supplier.get();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy