@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface AddToRuleKey
This annotation also indicates that we should derive inputs, deps and serialization automatically from this field/method.
Annotating a method with @AddToRuleKey should only be used for Immutable objects.
In general, this should be added to all fields unless there's a good reason not to add it. In
that case, annotated the field/method with @ExcludeFromRuleKey
to indicate that not
adding it to the keys is intentional.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
stringify
This causes us to add the value to the rulekey in its stringified form (i.e.
|