From b0792532b131485a6b398694b9f00203c040b300 Mon Sep 17 00:00:00 2001 From: Speiger Date: Tue, 13 Dec 2022 13:31:42 +0100 Subject: [PATCH] A few expressions weren't supported. --- build.gradle | 2 +- .../java/speiger/src/builder/conditions/NumberCondition.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 54c4c93..ca4f386 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ repositories { } archivesBaseName = 'Simple Code Generator' -version = '1.2.0' +version = '1.2.1' apply plugin: 'maven' tasks.withType(JavaCompile) { diff --git a/src/main/java/speiger/src/builder/conditions/NumberCondition.java b/src/main/java/speiger/src/builder/conditions/NumberCondition.java index 931e86e..3f8bdde 100644 --- a/src/main/java/speiger/src/builder/conditions/NumberCondition.java +++ b/src/main/java/speiger/src/builder/conditions/NumberCondition.java @@ -97,11 +97,13 @@ public class NumberCondition implements ICondition case EQUALS: return key == value; case NOT_EQUALS: return key != value; case GREATER: return key > value; + case GREATER_EQUALS: return key >= value; case SMALLER: return key < value; + case SMALLER_EQUALS: return key <= value; case BIT_EQUALS_ALL: return (key & value) == value; case BIT_EQUALS_ANY: return (key & value) != 0; case BIT_EQUALS_NOT: return (key & value) == 0; - default: return false; + default: return true; } }