Lombok - v0.11.4

lombok.core
Annotation Type HandlerPriority


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface HandlerPriority

Used to order the way handlers are run. Handlers with a lower priority value are run before handlers with higher priority values. For example, @Value can cause the class to be marked final, and this affects the behaviour of @EqualsAndHashCode. By ensuring that the handler for @Value always runs before the handler for @EqualsAndHashCode, the code is simpler: The @EqualsAndHashCode handler does not have to check for the presence of a @Value annotation to determine whether to generate the canEqual method or not.

A new priority level can also be used to force a reset of the resolved model, i.e. to add generated methods to the symbol tables. Each platform implementation (javac, ecj, etc) may have additional marker annotations required to indicate the need for the reset.


Required Element Summary
 int value
           
 
Optional Element Summary
 int subValue
          This can be used to differentiate 2 handlers with the same value to be at a different handler priority anyway.
 

Element Detail

value

public abstract int value

subValue

public abstract int subValue
This can be used to differentiate 2 handlers with the same value to be at a different handler priority anyway. DO NOT USE THIS unless someone has been crowding out the numbers and there's no room left.

Default:
0

Lombok - v0.11.4

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.