Skip to content

Commit

Permalink
Update Util.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Oct 23, 2021
1 parent be43ac3 commit dc64459
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions GalaxiAPI/global/src/net/ME1312/Galaxi/Library/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -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> T nullpo(T value) {
Expand All @@ -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
*
Expand Down

0 comments on commit dc64459

Please sign in to comment.