blob: 424959503a012d9054d12cfe1d35e7ef42786049 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.language.web.semantics.metadata;
public record ClassDetail(boolean abstractClass) implements RelationDetail {
public static final ClassDetail CONCRETE_CLASS = new ClassDetail(false);
public static final ClassDetail ABSTRACT_CLASS = new ClassDetail(true);
public static ClassDetail ofAbstractClass(boolean abstractClass) {
return abstractClass ? ABSTRACT_CLASS : CONCRETE_CLASS;
}
}
|