public static enum AllArguments.Assignment extends Enum<AllArguments.Assignment>
AllArguments
annotation on an array is to be interpreted.Enum Constant and Description |
---|
SLACK
Other than a
STRICT
assignment, a slack assignment simply ignores non-bindable parameters and does not include them in the target
array. |
STRICT
A strict assignment attempts to include all parameter values of the source method.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isStrict()
Returns
true if this assignment is strict. |
String |
toString() |
static AllArguments.Assignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AllArguments.Assignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllArguments.Assignment STRICT
public static final AllArguments.Assignment SLACK
STRICT
assignment, a slack assignment simply ignores non-bindable parameters and does not include them in the target
array. In the most extreme case where no source method parameter is assignable to the component type
of the annotated array, the array that is assigned to the target parameter is empty.public static AllArguments.Assignment[] values()
for (AllArguments.Assignment c : AllArguments.Assignment.values()) System.out.println(c);
public static AllArguments.Assignment valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected boolean isStrict()
true
if this assignment is strict.true
if this assignment is strict.public String toString()
toString
in class Enum<AllArguments.Assignment>
Copyright © 2014–2016. All rights reserved.