List of usage examples for com.fasterxml.jackson.databind.introspect BeanPropertyDefinition hasSetter
public abstract boolean hasSetter();
From source file:springfox.documentation.schema.Annotations.java
@SuppressWarnings("PMD") private static <A extends Annotation> Optional<A> tryGetSetterAnnotation( BeanPropertyDefinition beanPropertyDefinition, Class<A> annotationClass) { if (beanPropertyDefinition.hasSetter()) { return Optional.fromNullable(beanPropertyDefinition.getSetter().getAnnotation(annotationClass)); }/*from w ww.ja va 2 s .c om*/ return Optional.absent(); }