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

junitparams.internal.Memoizer Maven / Gradle / Ivy

package junitparams.internal;

abstract class Memoizer {

    private volatile T value;

    public T get() {
        if (value != null) {
            return value;
        }
        value = computeValue();
        return value;

    }

    protected abstract T computeValue();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy