protected boolean isExported(final AbstractRule rule) { final Function1<Annotation, Boolean> _function = (Annotation it) -> { return Boolean.valueOf(AnnotationNames.EXPORTED.equals(it.getName())); }; return IterableExtensions.<Annotation>exists(rule.getAnnotations(), _function); }
/** * @since 2.14 */ protected boolean isDeprecated(final AbstractRule rule) { final Function1<Annotation, Boolean> _function = (Annotation it) -> { return Boolean.valueOf(AnnotationNames.DEPRECATED.equals(it.getName())); }; return IterableExtensions.<Annotation>exists(rule.getAnnotations(), _function); }