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

smallcheck.annotations.StaticFactory Maven / Gradle / Ivy

The newest version!
package smallcheck.annotations;

import java.lang.annotation.*;
import java.util.function.Function;

/**
 *
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(StaticFactories.class)
public @interface StaticFactory {

    Class value();


    Class> copyFunc() default IdentityFunc.class;


    class IdentityFunc implements Function {

        @Override
        public Object apply(Object o) {
            return o;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy