Package org.immutables.value
Annotation Type Value.NonAttribute
-
@Documented @Target(METHOD) public static @interface Value.NonAttributeCan be used to mark some abstract no-argument methods in supertypes (about to be implemented/extended by abstract value types) as regular, non-attribute methods, i.e. annotation processor will not generate field, accessor, and builder initialized for it, but instead leave it for developer to implement in abstract value type (and there will be compilation error for generated class about not implementing all abstract methods as one can expect). This annotation is needed only for methods matching an accessor with zero parameters, which are to be turned into generated immutable attribute if no annotation specified. In addition, if you place it on many arguments method it will not be validated and will just hang there unused.