@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface First
Cause.first(Class)
Modifier and Type | Optional Element and Description |
---|---|
boolean |
inverse
If true then the behavior of the typeFilter is reversed and the specified
types are excluded rather than included.
|
Class<?>[] |
typeFilter
If specified the possible type for the returned object (normally
specified by the type of the annotated parameter) is restricted to only
the specified types.
|
public abstract Class<?>[] typeFilter
For exampled annotating a parameter of type Monster would normally accept all entities extending Monster, however with the includes specified as Enderman and Zombie the possible Monsters returned would be restricted to entities extending either Enderman and Zombie.