Package com.google.auto.value
Annotation Type AutoValue
-
@Retention(CLASS) @Target(TYPE) public @interface AutoValueSpecifies that AutoValue should generate an implementation class for the annotated abstract class, implementing the standardObjectmethods likeequalsto have conventional value semantics. A simple example:@AutoValue abstract class Person { static Person create(String name, int id) { return new AutoValue_Person(name, id); } abstract String name(); abstract int id(); }- See Also:
- AutoValue User's Guide