diff --git a/configuration/src/main/java/de/muehlencord/shared/configuration/Parameter.java b/configuration/src/main/java/de/muehlencord/shared/configuration/Parameter.java index 3ed2146..d3183a5 100644 --- a/configuration/src/main/java/de/muehlencord/shared/configuration/Parameter.java +++ b/configuration/src/main/java/de/muehlencord/shared/configuration/Parameter.java @@ -22,8 +22,6 @@ public abstract class Parameter { private String description; /** boolean flag if this is a mandatory parameter or not */ 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 */ private StringConverter stringConverter; /** list of mandatory parameters, if this parameter is active */ @@ -47,11 +45,11 @@ public abstract class Parameter { } /** - * 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 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 converter, boolean mandatory) { this(name, converter); @@ -59,19 +57,19 @@ public abstract class Parameter { } /** - * creates a new parameter object + * creates a new string parameter object. * * @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 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 converter, String description, boolean mandatory) { this(name, converter); this.description = description; this.mandatory = mandatory; } - + @Override public String toString() { return name; @@ -97,7 +95,7 @@ public abstract class Parameter { public boolean isMandatory() { return mandatory; } - + /** * @return the stringConverter */