diff --git a/pom.xml b/pom.xml
index d464756..3f369a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 4.0.2
+ 4.0.4
@@ -17,9 +17,9 @@
25
- 2.46.0
+ 2.48.0
3.20.11
- 0.12.15
+ 0.13.1
@@ -100,7 +100,7 @@
org.springdoc
springdoc-openapi-starter-webmvc-ui
- 3.0.0
+ 3.0.2
@@ -142,19 +142,19 @@
org.testcontainers
testcontainers
- 2.0.2
+ 2.0.4
test
org.testcontainers
testcontainers-junit-jupiter
- 2.0.2
+ 2.0.4
test
org.testcontainers
testcontainers-postgresql
- 2.0.2
+ 2.0.4
test
@@ -184,7 +184,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.14.1
+ 3.15.0
${java.version}
${java.version}
@@ -255,7 +255,7 @@
com.puppycrawl.tools
checkstyle
- 12.3.0
+ 13.3.0
it.aboutbits
diff --git a/src/main/java/it/aboutbits/springboot/toolbox/type/ScaledBigDecimal.java b/src/main/java/it/aboutbits/springboot/toolbox/type/ScaledBigDecimal.java
index 8738efe..ef44bb1 100644
--- a/src/main/java/it/aboutbits/springboot/toolbox/type/ScaledBigDecimal.java
+++ b/src/main/java/it/aboutbits/springboot/toolbox/type/ScaledBigDecimal.java
@@ -1,5 +1,6 @@
package it.aboutbits.springboot.toolbox.type;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import org.jspecify.annotations.NullMarked;
import java.math.BigDecimal;
@@ -275,42 +276,52 @@ public short shortValue() {
return (short) intValue();
}
+ @JsonIgnore
public boolean isZero() {
return this.value().compareTo(BigDecimal.ZERO) == 0;
}
+ @JsonIgnore
public boolean isNegative() {
return this.value().compareTo(BigDecimal.ZERO) < 0;
}
+ @JsonIgnore
public boolean isPositive() {
return this.value().compareTo(BigDecimal.ZERO) > 0;
}
+ @JsonIgnore
public boolean isPositiveOrZero() {
return this.value().compareTo(BigDecimal.ZERO) >= 0;
}
+ @JsonIgnore
public boolean isNegativeOrZero() {
return this.value().compareTo(BigDecimal.ZERO) <= 0;
}
+ @JsonIgnore
public boolean isEqual(ScaledBigDecimal other) {
return this.compareTo(other) == 0;
}
+ @JsonIgnore
public boolean isBiggerThan(ScaledBigDecimal other) {
return this.compareTo(other) > 0;
}
+ @JsonIgnore
public boolean isEqualOrBiggerThan(ScaledBigDecimal other) {
return this.compareTo(other) >= 0;
}
+ @JsonIgnore
public boolean isSmallerThan(ScaledBigDecimal other) {
return this.compareTo(other) < 0;
}
+ @JsonIgnore
public boolean isEqualOrSmallerThan(ScaledBigDecimal other) {
return this.compareTo(other) <= 0;
}