Annotation Type EpoxyAttribute


  • @Target(FIELD)
    @Retention(CLASS)
    public @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.
      • hash

        @Deprecated
        boolean hash
        Deprecated.
        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.
        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