/* * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors * * SPDX-License-Identifier: EPL-2.0 */ package tools.refinery.store.query.term; public interface StatefulAggregate { void add(T value); void remove(T value); R getResult(); boolean isEmpty(); StatefulAggregate deepCopy(); default boolean contains(T value) { throw new UnsupportedOperationException(); } }