Enum AllArguments.Assignment

    • Enum Constant Detail

      • STRICT

        public static final AllArguments.Assignment STRICT
        A strict assignment attempts to include all parameter values of the source method. If only one of these parameters is not assignable to the component type of the annotated array, the method is considered as non-bindable.
      • SLACK

        public static final AllArguments.Assignment SLACK
        Other than a 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.
    • Method Detail

      • values

        public static AllArguments.Assignment[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AllArguments.Assignment c : AllArguments.Assignment.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AllArguments.Assignment valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isStrict

        protected boolean isStrict()
        Returns true if this assignment is strict.
        Returns:
        true if this assignment is strict.