Добавил новые проверки в Checker

This commit is contained in:
Struchkov Mark 2022-12-09 21:08:54 +03:00
parent 7907a80f77
commit 63bc66810c
5 changed files with 13 additions and 5 deletions

View File

@ -6,7 +6,7 @@
<parent>
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-dependencies</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>
</parent>
<artifactId>haiti-exception</artifactId>

View File

@ -6,7 +6,7 @@
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-external-bom</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>
<packaging>pom</packaging>
<name>Haiti External Dependencies</name>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-dependencies</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>
</parent>
<name>Haiti Utils</name>

View File

@ -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);

View File

@ -6,7 +6,7 @@
<groupId>dev.struchkov.haiti</groupId>
<artifactId>haiti-dependencies</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>
<packaging>pom</packaging>
<name>Haiti Framework</name>
@ -35,7 +35,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<haiti.ver>2.0.0</haiti.ver>
<haiti.ver>2.1.0</haiti.ver>
<haiti.exception.ver>${haiti.ver}</haiti.exception.ver>
<haiti.context.ver>${haiti.ver}</haiti.context.ver>
<haiti.filter.api.ver>${haiti.ver}</haiti.filter.api.ver>