[New] Added DurationParameter.getPeriod() and .getDuration()
This commit is contained in:
parent
8e629dfe82
commit
2002f91820
|
@ -136,6 +136,14 @@ public class DurationParameter extends AbstractParameter<PeriodDuration> {
|
|||
return this.value.toMillis();
|
||||
}
|
||||
|
||||
public Period getPeriod() {
|
||||
return this.value.getPeriod();
|
||||
}
|
||||
|
||||
public Duration getDuration() {
|
||||
return this.value.getDuration();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValueFromString(String valueAsString) {
|
||||
setValue(parseFromString(valueAsString));
|
||||
|
|
Loading…
Reference in New Issue