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

import tools.refinery.store.representation.Symbol;
import tools.refinery.logic.term.truthvalue.TruthValue;
import tools.refinery.store.tuple.Tuple;

public class MayView extends TuplePreservingView<TruthValue> {
	public MayView(Symbol<TruthValue> symbol) {
		super(symbol, "may");
	}

	@Override
	protected boolean doFilter(Tuple key, TruthValue value) {
		return value.may();
	}
}