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

net.jbock.context.CachedMethod Maven / Gradle / Ivy

There is a newer version: 5.18
Show newest version
package net.jbock.context;

import com.squareup.javapoet.MethodSpec;

abstract class CachedMethod {

    private MethodSpec instance;

    abstract MethodSpec define();

    final MethodSpec get() {
        if (instance == null) {
            instance = define();
        }
        return instance;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy