Package com.airbnb.epoxy
Annotation Interface EpoxyAttribute
Used to annotate fields on EpoxyModel classes in order to generate a subclass of that model with
getters, setters, equals, and hashcode for the annotated fields.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOptions that can be included on the attribute to affect how the model's generated class is created. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanDeprecated.booleanDeprecated.UseEpoxyAttribute.Option.NoSetterinstead.Specify anyEpoxyAttribute.Optionvalues that should be used when generating the model class.
-
Element Details
-
value
EpoxyAttribute.Option[] valueSpecify anyEpoxyAttribute.Optionvalues that should be used when generating the model class.- Default:
- {}
-
hash
Deprecated.UseEpoxyAttribute.Option.DoNotHashinstead.Whether or not to include this attribute in equals and hashCode calculations.It may be useful to disable this for objects that get recreated without the underlying data changing such as a click listener that gets created inline in every bind call.
- Default:
- true
-
setter
Deprecated.UseEpoxyAttribute.Option.NoSetterinstead.Whether or not to generate setter for this attribute.It may be useful to disable this for attribute which can be immutable and doesn't require setter.
- Default:
- true
-
EpoxyAttribute.Option.DoNotHashinstead.