Package io.opencensus.implcore.internal
Class Utils
- java.lang.Object
-
- io.opencensus.implcore.internal.Utils
-
public final class Utils extends java.lang.Object
General internal utility methods.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> void
checkListElementNotNull(java.util.List<T> list, java.lang.Object errorMessage)
Throws aNullPointerException
if any of the list elements is null.
-
-
-
Method Detail
-
checkListElementNotNull
public static <T> void checkListElementNotNull(java.util.List<T> list, @Nullable java.lang.Object errorMessage)
Throws aNullPointerException
if 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)
.
-
-