@InitialBooleanValue(true) boolean isSecondNull();
private static Object getInitialValue(Method method) { Object value = null; for (Annotation annotation : method.getAnnotations()) { if (annotation instanceof InitialLongValue) { checkArgument(value == null, "%s has multiple initialValue annotations", method.getName()); checkArgument(method.getReturnType() == long.class, "%s does not return a long, but is annotated with @InitialLongValue", method.getName()); value = ((InitialLongValue) annotation).value(); } else if (annotation instanceof InitialDoubleValue) { checkArgument(value == null, "%s has multiple initialValue annotations", method.getName()); checkArgument(method.getReturnType() == double.class, "%s does not return a double, but is annotated with @InitialDoubleValue", method.getName()); value = ((InitialDoubleValue) annotation).value(); } else if (annotation instanceof InitialBooleanValue) { checkArgument(value == null, "%s has multiple initialValue annotations", method.getName()); checkArgument(method.getReturnType() == boolean.class, "%s does not return a boolean, but is annotated with @InitialBooleanValue", method.getName()); value = ((InitialBooleanValue) annotation).value(); } } return value; }
private static Object getInitialValue(Method method) { Object value = null; for (Annotation annotation : method.getAnnotations()) { if (annotation instanceof InitialLongValue) { checkArgument(value == null, "%s has multiple initialValue annotations", method.getName()); checkArgument(method.getReturnType() == long.class, "%s does not return a long, but is annotated with @InitialLongValue", method.getName()); value = ((InitialLongValue) annotation).value(); } else if (annotation instanceof InitialDoubleValue) { checkArgument(value == null, "%s has multiple initialValue annotations", method.getName()); checkArgument(method.getReturnType() == double.class, "%s does not return a double, but is annotated with @InitialDoubleValue", method.getName()); value = ((InitialDoubleValue) annotation).value(); } else if (annotation instanceof InitialBooleanValue) { checkArgument(value == null, "%s has multiple initialValue annotations", method.getName()); checkArgument(method.getReturnType() == boolean.class, "%s does not return a boolean, but is annotated with @InitialBooleanValue", method.getName()); value = ((InitialBooleanValue) annotation).value(); } } return value; }
@InitialBooleanValue(true) boolean isNull();
@InitialBooleanValue(true) boolean isNull();
@InitialBooleanValue(true) boolean isNull();
@InitialBooleanValue(true) boolean isFirstNull();
@InitialBooleanValue(true) boolean isNull();
@InitialBooleanValue(true) boolean isNull();
@InitialBooleanValue(true) boolean isNull();