Class ValueArgument


  • public final class ValueArgument
    extends Object
    Used to encapsulate two ints as a value for a parameter. This is used to distinguish normal ints and values for eventual argument conversion using an ArgumentConverter. Therefore, all values should be reported in a Report using this class.
    • Constructor Detail

      • ValueArgument

        public ValueArgument​(int parameter,
                             int value)
        Creates a new argument for the value uniquely defined by both ints.
        Parameters:
        parameter - the parameter
        value - a value of the given parameter
    • Method Detail

      • value

        public static ValueArgument value​(int parameter,
                                          int value)
      • getParameter

        public int getParameter()
      • getValue

        public int getValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object