Class Utils
java.lang.Object
io.opencensus.implcore.internal.Utils
General internal utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidcheckListElementNotNull(List<T> list, Object errorMessage) Throws aNullPointerExceptionif any of the list elements is null.
-
Constructor Details
-
Utils
private Utils()
-
-
Method Details
-
checkListElementNotNull
Throws aNullPointerExceptionif any of the list elements is null.- Parameters:
list- the argument list to check for null.errorMessage- the message to use for the exception. Will be converted to a string usingString.valueOf(Object).
-