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

net.vidageek.mirror.matcher.SetterMatcher Maven / Gradle / Ivy

package net.vidageek.mirror.matcher;

import java.lang.reflect.Method;

import net.vidageek.mirror.dsl.Matcher;

final public class SetterMatcher implements Matcher {

    public boolean accepts(final Method element) {
        return element.getName().startsWith("set") && (element.getParameterTypes().length == 1)
                && (element.getReturnType().equals(void.class));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy