From dc644596deb4d52205b22ea9ca30052cab25e072 Mon Sep 17 00:00:00 2001 From: ME1312 Date: Sat, 23 Oct 2021 19:46:26 -0400 Subject: [PATCH] Update Util.java --- .../global/src/net/ME1312/Galaxi/Library/Util.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Util.java b/GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Util.java index 38a0484..5ffc13f 100644 --- a/GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Util.java +++ b/GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Util.java @@ -16,9 +16,9 @@ private Util(){} /** - * Checks values to make sure they're not null + * Checks a value to make sure it's not null * - * @param value Values to check + * @param value Value to check * @throws NullPointerException if any are null */ public static T nullpo(T value) { @@ -38,6 +38,16 @@ public static void nullpo(Object... values) { } } + /** + * Checks a value to make sure it's not null + * + * @param value Value to check + * @return If any are null + */ + public static boolean isNull(Object value) { + return value == null; + } + /** * Checks values to make sure they're not null *