fixed typos

This commit is contained in:
jomu
2017-02-21 11:30:25 +00:00
parent ae150a942f
commit 7b74a0d5cf

View File

@ -22,8 +22,6 @@ public abstract class Parameter<T> {
private String description; private String description;
/** boolean flag if this is a mandatory parameter or not */ /** boolean flag if this is a mandatory parameter or not */
private boolean mandatory; private boolean mandatory;
/** the type of the value object for this paramterer */
// private T type;
/** the string converter to convert the object to string and back again */ /** the string converter to convert the object to string and back again */
private StringConverter<T> stringConverter; private StringConverter<T> stringConverter;
/** list of mandatory parameters, if this parameter is active */ /** list of mandatory parameters, if this parameter is active */
@ -47,11 +45,11 @@ public abstract class Parameter<T> {
} }
/** /**
* creates a new parameter object * creates a new string parameter object. If the parameter is mandatory or not can be specified.
* *
* @param name the name of the parameter * @param name the name of the parameter
* @param converter the converter object to convert the value of the parameter to string and vice versa * @param converter the converter object to convert the value of the parameter to string and vice versa
* @param mandatory detremines if this is a mandatory parameter or not * @param mandatory determines if this is a mandatory parameter or not
*/ */
public Parameter(String name, StringConverter<T> converter, boolean mandatory) { public Parameter(String name, StringConverter<T> converter, boolean mandatory) {
this(name, converter); this(name, converter);
@ -59,19 +57,19 @@ public abstract class Parameter<T> {
} }
/** /**
* creates a new parameter object * creates a new string parameter object.
* *
* @param name the name of the parameter * @param name the name of the parameter
* @param converter the converter object to convert the value of the parameter to string and vice versa * @param converter the converter object to convert the value of the parameter to string and vice versa
* @param description the long text description of this parameter * @param description the long text description of this parameter
* @param mandatory detremines if this is a mandatory parameter or not * @param mandatory determines if this is a mandatory parameter or not
*/ */
public Parameter(String name, StringConverter<T> converter, String description, boolean mandatory) { public Parameter(String name, StringConverter<T> converter, String description, boolean mandatory) {
this(name, converter); this(name, converter);
this.description = description; this.description = description;
this.mandatory = mandatory; this.mandatory = mandatory;
} }
@Override @Override
public String toString() { public String toString() {
return name; return name;
@ -97,7 +95,7 @@ public abstract class Parameter<T> {
public boolean isMandatory() { public boolean isMandatory() {
return mandatory; return mandatory;
} }
/** /**
* @return the stringConverter * @return the stringConverter
*/ */