Package com.google.auto.value
Annotation Type AutoOneOf
-
@Retention(CLASS) @Target(TYPE) public @interface AutoOneOf
Specifies that the annotated class is a one-of class, also known as a tagged union. An@AutoOneOfclass is very similar to an@AutoValueclass, in that its abstract methods define a set of properties. But unlike@AutoValue, only one of those properties is defined in any given instance.{@code- Author:
- Chris Nokleberg, Éamonn McManus