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; } }