@Override public synchronized boolean insert(T tuple) { if (getWindow().getInsertionPolicy().apply(this, tuple)) { getWindow().getContentsPolicy().accept(this, tuple); this.tuples.add(tuple); // Trigger getWindow().getTriggerPolicy().accept(this, tuple); return true; } return true; }
@Override public synchronized boolean insert(T tuple) { if (getWindow().getInsertionPolicy().apply(this, tuple)) { getWindow().getContentsPolicy().accept(this, tuple); this.tuples.add(tuple); // Trigger getWindow().getTriggerPolicy().accept(this, tuple); return true; } return true; }