Package com.airbnb.epoxy
Annotation Type EpoxyAttribute
-
@Target(FIELD) @Retention(CLASS) public @interface EpoxyAttributeUsed 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.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanhashDeprecated.UseEpoxyAttribute.Option.DoNotHashinstead.booleansetterDeprecated.UseEpoxyAttribute.Option.NoSetterinstead.EpoxyAttribute.Option[]valueSpecify anyEpoxyAttribute.Optionvalues that should be used when generating the model class.
-
-
-
Element Detail
-
value
EpoxyAttribute.Option[] value
Specify anyEpoxyAttribute.Optionvalues that should be used when generating the model class.- Default:
- {}
-
-
-
hash
@Deprecated boolean 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 boolean 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
-
-