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

import tools.refinery.logic.term.BinaryTerm;
import tools.refinery.logic.term.Term;

public abstract class ComparisonTerm<T> extends BinaryTerm<Boolean, T, T> {
	protected ComparisonTerm(Class<T> argumentType, Term<T> left, Term<T> right) {
		super(Boolean.class, argumentType, argumentType, left, right);
	}

	public Class<T> getArgumentType() {
		return getLeftType();
	}
}