blob: d3a216d8f2a5b48e4dec2e897424138083770f2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.reasoning;
public enum MergeResult {
UNCHANGED,
REFINED,
REJECTED;
public MergeResult andAlso(MergeResult other) {
return switch (this) {
case UNCHANGED -> other;
case REFINED -> other == REJECTED ? REJECTED : REFINED;
case REJECTED -> REJECTED;
};
}
}
|