Skip to content

Commit

Permalink
Open Arithmetics 'exact' existence methods for developers (#7207)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAbsolutionism authored Dec 1, 2024
1 parent 631955d commit 6a31b7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static <L, R, T> void registerOperation(Operator operator, Class<L> leftC
getOperations_i(operator).add(new OperationInfo<>(leftClass, rightClass, returnType, operation));
}

private static boolean exactOperationExists(Operator operator, Class<?> leftClass, Class<?> rightClass) {
public static boolean exactOperationExists(Operator operator, Class<?> leftClass, Class<?> rightClass) {
for (OperationInfo<?, ?, ?> info : getOperations_i(operator)) {
if (info.getLeft() == leftClass && info.getRight() == rightClass)
return true;
Expand Down Expand Up @@ -188,7 +188,7 @@ public static <T, R> void registerDifference(Class<T> type, Class<R> returnType,
differences.put(type, new DifferenceInfo<>(type, returnType, operation));
}

private static boolean exactDifferenceExists(Class<?> type) {
public static boolean exactDifferenceExists(Class<?> type) {
return differences.containsKey(type);
}

Expand Down

0 comments on commit 6a31b7e

Please sign in to comment.