Package com.mackenziehigh.snowflake
Class Utils
java.lang.Object
com.mackenziehigh.snowflake.Utils
This class provides static utility methods.
- Author:
- Mackenzie High
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkNonNull
(Object object) This method ensures that an object reference is non-null.static void
checkNonNullArray
(Object[] array) This method ensures that an array is non-null and that the array contains no null elements.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
checkNonNull
This method ensures that an object reference is non-null.- Parameters:
object
- is the object reference itself.- Throws:
NullPointerException
- ifobject
is null.
-
checkNonNullArray
This method ensures that an array is non-null and that the array contains no null elements.- Parameters:
array
- the array itself.- Throws:
NullPointerException
- ifarray
is null.NullPointerException
- ifarray
contains a null element.
-