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 *