blob: 498bcd83cd3c02117eb6460305e8b058a0c10718 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.reasoning.translator.multiobject;
import tools.refinery.store.query.view.TuplePreservingView;
import tools.refinery.store.representation.Symbol;
import tools.refinery.store.representation.cardinality.CardinalityInterval;
import tools.refinery.store.representation.cardinality.CardinalityIntervals;
import tools.refinery.store.tuple.Tuple;
class MultiView extends TuplePreservingView<CardinalityInterval> {
protected MultiView(Symbol<CardinalityInterval> symbol) {
super(symbol, "multi");
}
@Override
protected boolean doFilter(Tuple key, CardinalityInterval value) {
return !CardinalityIntervals.ONE.equals(value);
}
}
|