@Override public void test() throws ParameterException {
  Set<Object> numbers=new HashSet<>();
  for (  Parameter<?> param : parameters) {
    if (param.isDefined() && !numbers.add(param.getValue())) {
      throw new WrongParameterValueException("Global Parameter Constraint Error:\n" + "Parameters " + OptionUtil.optionsNamesToString(parameters) + " must have different values. Current values: "+ OptionUtil.parameterNamesAndValuesToString(parameters)+ ".\n");
    }
  }
}

@ Override public void test ( ) throws ParameterException { Set < Object > numbers = new HashSet < > ( ) ; for ( Parameter < ? > param : parameters ) { if ( param . isDefined ( ) && ! numbers . add ( param . getValue ( ) ) ) { throw new WrongParameterValueException ( "Global Parameter Constraint Error:\n" + "Parameters " + OptionUtil . optionsNamesToString ( parameters ) + " must have different values. Current values: " + OptionUtil . parameterNamesAndValuesToString ( parameters ) + ".\n" ) ; } } }
checks if the elements of the list of number parameters do have different values . if not , a parameter exception is thrown .
