From 63bc66810ca6c3072f3d25a22d5a70a64033eb2d Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Fri, 9 Dec 2022 21:08:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BA=D0=B8=20=D0=B2=20Checker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- haiti-exception/pom.xml | 2 +- haiti-external-bom/pom.xml | 2 +- haiti-utils/pom.xml | 2 +- .../src/main/java/dev/struchkov/haiti/utils/Checker.java | 8 ++++++++ pom.xml | 4 ++-- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/haiti-exception/pom.xml b/haiti-exception/pom.xml index 9215bb2..dbb5744 100644 --- a/haiti-exception/pom.xml +++ b/haiti-exception/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.haiti haiti-dependencies - 2.0.0 + 2.1.0 haiti-exception diff --git a/haiti-external-bom/pom.xml b/haiti-external-bom/pom.xml index 8e8784f..0ae9389 100644 --- a/haiti-external-bom/pom.xml +++ b/haiti-external-bom/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.haiti haiti-external-bom - 2.0.0 + 2.1.0 pom Haiti External Dependencies diff --git a/haiti-utils/pom.xml b/haiti-utils/pom.xml index a809fd0..e6fb25b 100644 --- a/haiti-utils/pom.xml +++ b/haiti-utils/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.haiti haiti-dependencies - 2.0.0 + 2.1.0 Haiti Utils diff --git a/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java b/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java index 8c1eacd..e795c10 100644 --- a/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java +++ b/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Checker.java @@ -87,6 +87,14 @@ public final class Checker { return EMPTY.equals(s); } + public static boolean checkNotFalse(Boolean b) { + return b != null && b; + } + + public static boolean checkNotTrue(Boolean b) { + return b != null && !b; + } + public static boolean checkLong(String s) { try { Long.parseLong(s); diff --git a/pom.xml b/pom.xml index 814da54..f406b75 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.haiti haiti-dependencies - 2.0.0 + 2.1.0 pom Haiti Framework @@ -35,7 +35,7 @@ UTF-8 UTF-8 - 2.0.0 + 2.1.0 ${haiti.ver} ${haiti.ver} ${haiti.ver}