[New] added TimeVariable.clear()-method
Can be used to remove all currently existing TimedValues
This commit is contained in:
parent
8f50a159b1
commit
b77f4b204f
|
@ -84,6 +84,11 @@ public interface ITimeVariable<T extends IValue> {
|
||||||
*/
|
*/
|
||||||
void compact();
|
void compact();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears all values on this time variable
|
||||||
|
*/
|
||||||
|
void clear();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return a copy of this time variable
|
* @return a copy of this time variable
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -118,6 +118,11 @@ public class TimeVariable<T extends IValue> implements ITimeVariable<T>, Seriali
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clear() {
|
||||||
|
this.container.clear();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ITimeVariable<T> getCopy() {
|
public ITimeVariable<T> getCopy() {
|
||||||
TimeVariable<T> clone = new TimeVariable<>();
|
TimeVariable<T> clone = new TimeVariable<>();
|
||||||
|
|
Loading…
Reference in New Issue