Commit 9d49b443 authored by Maxim Dudin's avatar Maxim Dudin
Browse files

added a removeKey() method to DataProcessor.java

- it was already possible to write and rewrite values with putValue()
- it was already possible to clear the data with preLoop()
-> removeKey() doesn't allow any new functionality and exists solely for convenience and performance
parent ccc498cf
......@@ -105,6 +105,10 @@ public abstract class DataProcessor<K extends DataKey<K>, V> {
this.data.put(key, value);
}
protected void removeKey(final K key) {
this.data.remove(key);
}
public void preLoop(final SimulationState state) { data.clear(); }
protected abstract void doUpdate(final SimulationState state);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment