/*
* Svjatoslav Commons - shared library of common functionality.
* Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
@Override
public IntegerParameter addAliases(final String... aliasArray) {
- super.addAliases(aliasArray);
+ super.addAliasesProtected(aliasArray);
return this;
}
return "integer";
}
- public int getValue() {
+ @Override
+ public Integer getValue() {
if (arguments.size() != 1)
throw new RuntimeException("Parameter " + description
+ " shall have exactly 1 argument.");
@Override
public IntegerParameter setMandatory() {
- mandatory = true;
+ setMandatoryProtected();
return this;
}
return false;
}
}
-
}