aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-query/src/main/java/tools/refinery/store/query/term/StatefulAggregate.java
blob: ab3105564d3c158dd79922c6a624d4de08acd795 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package tools.refinery.store.query.term;

public interface StatefulAggregate<R, T> {
	void add(T value);

	void remove(T value);

	R getResult();

	boolean isEmpty();

	StatefulAggregate<R, T> deepCopy();

	default boolean contains(T value) {
		throw new UnsupportedOperationException();
	}
}