/** * Reads boolean element from the annotation. */ protected boolean readBoolean(A annotation, String name, boolean defaultValue) { Boolean value = (Boolean) readElement(annotation, name); if (value == null) { return defaultValue; } return value.booleanValue(); }
/** * Reads int element from the annotation. */ protected int readInt(A annotation, String name, int defaultValue) { Integer value = (Integer) readElement(annotation, name); if (value == null) { return defaultValue; } return value.intValue(); }
/** * Reads boolean element from the annotation. */ protected boolean readBoolean(A annotation, String name, boolean defaultValue) { Boolean value = (Boolean) readElement(annotation, name); if (value == null) { return defaultValue; } return value.booleanValue(); }
/** * Reads int element from the annotation. */ protected int readInt(A annotation, String name, int defaultValue) { Integer value = (Integer) readElement(annotation, name); if (value == null) { return defaultValue; } return value.intValue(); }