/** get constructors with any parameter annotated with given annotation, including annotation member values matching */ public Set<Constructor> getConstructorsWithAnyParamAnnotated(Annotation annotation) { return filter(getConstructorsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
/** get methods with any parameter annotated with given annotation, including annotation member values matching */ public Set<Method> getMethodsWithAnyParamAnnotated(Annotation annotation) { return filter(getMethodsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
/** get constructors with any parameter annotated with given annotation, including annotation member values matching */ public Set<Constructor> getConstructorsWithAnyParamAnnotated(Annotation annotation) { return filter(getConstructorsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
/** get methods with any parameter annotated with given annotation, including annotation member values matching */ public Set<Method> getMethodsWithAnyParamAnnotated(Annotation annotation) { return filter(getMethodsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
public Set<Constructor> getConstructorsWithAnyParamAnnotated(Annotation annotation) { final Predicate<Member> memberPredicate = withAnyParameterAnnotation(annotation); final Set<Constructor> constructors = getConstructorsWithAnyParamAnnotated(annotation.annotationType()); return filter(constructors , (Predicate<Constructor>) memberPredicate::apply); }
public Set<Method> getMethodsWithAnyParamAnnotated(Annotation annotation) { final Set<Method> methodsWithAnyParamAnnotated = getMethodsWithAnyParamAnnotated(annotation.annotationType()); final Predicate<Member> memberPredicate = withAnyParameterAnnotation(annotation); return filter(methodsWithAnyParamAnnotated , (Predicate<Method>) memberPredicate::apply); }
/** get constructors with any parameter annotated with given annotation, including annotation member values matching */ public Set<Constructor> getConstructorsWithAnyParamAnnotated(Annotation annotation) { return filter(getConstructorsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
/** get methods with any parameter annotated with given annotation, including annotation member values matching */ public Set<Method> getMethodsWithAnyParamAnnotated(Annotation annotation) { return filter(getMethodsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
/** get methods with any parameter annotated with given annotation, including annotation member values matching */ public Set<Method> getMethodsWithAnyParamAnnotated(Annotation annotation) { return filter(getMethodsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
/** get constructors with any parameter annotated with given annotation, including annotation member values matching */ public Set<Constructor> getConstructorsWithAnyParamAnnotated(Annotation annotation) { return filter(getConstructorsWithAnyParamAnnotated(annotation.annotationType()), withAnyParameterAnnotation(annotation)); }
method -> !(Optional.class.isAssignableFrom(method.getParameterTypes()[0]) && !OPTIONAL_STRING_METHODS_TO_BUILD.contains(method.getName())), method -> !ReflectionUtils.withAnyParameterAnnotation(Nullable.class).apply(method) ); for (Method builderMethod : builderMethods) {