[Minor] code cleanup
This commit is contained in:
parent
fd50661406
commit
858bf76d65
|
@ -39,9 +39,12 @@ public class BooleanParameter extends AbstractParameter<Boolean> {
|
||||||
/**
|
/**
|
||||||
* Default constructors
|
* Default constructors
|
||||||
*
|
*
|
||||||
* @param id the id
|
* @param id
|
||||||
* @param name the name
|
* the id
|
||||||
* @param value the value
|
* @param name
|
||||||
|
* the name
|
||||||
|
* @param value
|
||||||
|
* the value
|
||||||
*/
|
*/
|
||||||
public BooleanParameter(String id, String name, Boolean value) {
|
public BooleanParameter(String id, String name, Boolean value) {
|
||||||
super(id, name);
|
super(id, name);
|
||||||
|
@ -92,6 +95,11 @@ public class BooleanParameter extends AbstractParameter<Boolean> {
|
||||||
return StrolchValueType.BOOLEAN.getType();
|
return StrolchValueType.BOOLEAN.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.BOOLEAN;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BooleanParameter getClone() {
|
public BooleanParameter getClone() {
|
||||||
BooleanParameter clone = new BooleanParameter();
|
BooleanParameter clone = new BooleanParameter();
|
||||||
|
@ -118,8 +126,4 @@ public class BooleanParameter extends AbstractParameter<Boolean> {
|
||||||
return this.getValue().compareTo(((BooleanParameter) o).getValue());
|
return this.getValue().compareTo(((BooleanParameter) o).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.BOOLEAN;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,6 +98,11 @@ public class DateParameter extends AbstractParameter<Date> {
|
||||||
return StrolchValueType.DATE.getType();
|
return StrolchValueType.DATE.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.DATE;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DateParameter getClone() {
|
public DateParameter getClone() {
|
||||||
DateParameter clone = new DateParameter();
|
DateParameter clone = new DateParameter();
|
||||||
|
@ -124,8 +129,4 @@ public class DateParameter extends AbstractParameter<Date> {
|
||||||
return this.getValue().compareTo(((DateParameter) o).getValue());
|
return this.getValue().compareTo(((DateParameter) o).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.DATE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,6 +95,11 @@ public class DurationParameter extends AbstractParameter<Long> {
|
||||||
return StrolchValueType.DURATION.getType();
|
return StrolchValueType.DURATION.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.DURATION;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DurationParameter getClone() {
|
public DurationParameter getClone() {
|
||||||
DurationParameter clone = new DurationParameter();
|
DurationParameter clone = new DurationParameter();
|
||||||
|
@ -121,8 +126,4 @@ public class DurationParameter extends AbstractParameter<Long> {
|
||||||
return this.getValue().compareTo(((DurationParameter) o).getValue());
|
return this.getValue().compareTo(((DurationParameter) o).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.DURATION;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,6 +134,11 @@ public class FloatListParameter extends AbstractParameter<List<Double>> implemen
|
||||||
return StrolchValueType.FLOAT_LIST.getType();
|
return StrolchValueType.FLOAT_LIST.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.FLOAT_LIST;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FloatListParameter getClone() {
|
public FloatListParameter getClone() {
|
||||||
FloatListParameter clone = new FloatListParameter();
|
FloatListParameter clone = new FloatListParameter();
|
||||||
|
@ -174,8 +179,4 @@ public class FloatListParameter extends AbstractParameter<List<Double>> implemen
|
||||||
return Integer.compare(this.getValue().size(), ((FloatListParameter) o).getValue().size());
|
return Integer.compare(this.getValue().size(), ((FloatListParameter) o).getValue().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.FLOAT_LIST;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,11 @@ public class FloatParameter extends AbstractParameter<Double> {
|
||||||
return StrolchValueType.FLOAT.getType();
|
return StrolchValueType.FLOAT.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.FLOAT;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FloatParameter getClone() {
|
public FloatParameter getClone() {
|
||||||
FloatParameter clone = new FloatParameter();
|
FloatParameter clone = new FloatParameter();
|
||||||
|
@ -122,8 +127,4 @@ public class FloatParameter extends AbstractParameter<Double> {
|
||||||
return this.getValue().compareTo(((FloatParameter) o).getValue());
|
return this.getValue().compareTo(((FloatParameter) o).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.FLOAT;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,6 +134,11 @@ public class IntegerListParameter extends AbstractParameter<List<Integer>> imple
|
||||||
return StrolchValueType.INTEGER_LIST.getType();
|
return StrolchValueType.INTEGER_LIST.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.INTEGER_LIST;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IntegerListParameter getClone() {
|
public IntegerListParameter getClone() {
|
||||||
IntegerListParameter clone = new IntegerListParameter();
|
IntegerListParameter clone = new IntegerListParameter();
|
||||||
|
@ -174,8 +179,4 @@ public class IntegerListParameter extends AbstractParameter<List<Integer>> imple
|
||||||
return Integer.compare(this.getValue().size(), ((IntegerListParameter) o).getValue().size());
|
return Integer.compare(this.getValue().size(), ((IntegerListParameter) o).getValue().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.INTEGER_LIST;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,11 @@ public class IntegerParameter extends AbstractParameter<Integer> {
|
||||||
return StrolchValueType.INTEGER.getType();
|
return StrolchValueType.INTEGER.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.INTEGER;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getValueAsString() {
|
public String getValueAsString() {
|
||||||
return Integer.toString(this.value);
|
return Integer.toString(this.value);
|
||||||
|
@ -120,8 +125,4 @@ public class IntegerParameter extends AbstractParameter<Integer> {
|
||||||
return this.getValue().compareTo(((IntegerParameter) o).getValue());
|
return this.getValue().compareTo(((IntegerParameter) o).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.INTEGER;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,6 +134,11 @@ public class LongListParameter extends AbstractParameter<List<Long>> implements
|
||||||
return StrolchValueType.LONG_LIST.getType();
|
return StrolchValueType.LONG_LIST.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.LONG_LIST;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public LongListParameter getClone() {
|
public LongListParameter getClone() {
|
||||||
LongListParameter clone = new LongListParameter();
|
LongListParameter clone = new LongListParameter();
|
||||||
|
@ -174,8 +179,4 @@ public class LongListParameter extends AbstractParameter<List<Long>> implements
|
||||||
return Integer.compare(this.getValue().size(), ((LongListParameter) o).getValue().size());
|
return Integer.compare(this.getValue().size(), ((LongListParameter) o).getValue().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.LONG_LIST;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,11 @@ public class LongParameter extends AbstractParameter<Long> {
|
||||||
return StrolchValueType.LONG.getType();
|
return StrolchValueType.LONG.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.LONG;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public LongParameter getClone() {
|
public LongParameter getClone() {
|
||||||
LongParameter clone = new LongParameter();
|
LongParameter clone = new LongParameter();
|
||||||
|
@ -120,8 +125,4 @@ public class LongParameter extends AbstractParameter<Long> {
|
||||||
return this.getValue().compareTo(((LongParameter) o).getValue());
|
return this.getValue().compareTo(((LongParameter) o).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.LONG;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,6 +134,11 @@ public class StringListParameter extends AbstractParameter<List<String>> impleme
|
||||||
return StrolchValueType.STRING_LIST.getType();
|
return StrolchValueType.STRING_LIST.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.STRING_LIST;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StringListParameter getClone() {
|
public StringListParameter getClone() {
|
||||||
StringListParameter clone = new StringListParameter();
|
StringListParameter clone = new StringListParameter();
|
||||||
|
@ -174,8 +179,4 @@ public class StringListParameter extends AbstractParameter<List<String>> impleme
|
||||||
return Integer.compare(this.getValue().size(), ((StringListParameter) o).getValue().size());
|
return Integer.compare(this.getValue().size(), ((StringListParameter) o).getValue().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.STRING_LIST;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,11 @@ public class StringParameter extends AbstractParameter<String> {
|
||||||
return StrolchValueType.STRING.getType();
|
return StrolchValueType.STRING.getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StrolchValueType getValueType() {
|
||||||
|
return StrolchValueType.STRING;
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
|
@ -118,8 +123,4 @@ public class StringParameter extends AbstractParameter<String> {
|
||||||
return this.getValue().compareToIgnoreCase(((StringParameter) o).getValue());
|
return this.getValue().compareToIgnoreCase(((StringParameter) o).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public StrolchValueType getValueType() {
|
|
||||||
return StrolchValueType.STRING;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue