public addIfNotPresent(t: T) { if (!this._history.contains(t)) { this.add(t); } }
public add(t: T) { this._history.set(t); this._onChange(); }