Добавил новые проверки в Checker
This commit is contained in:
parent
7907a80f77
commit
63bc66810c
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
4
pom.xml
4
pom.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user