Class Utils

java.lang.Object
io.opencensus.implcore.internal.Utils

public final class Utils extends Object
General internal utility methods.
  • Constructor Details

    • Utils

      private Utils()
  • Method Details

    • checkListElementNotNull

      public static <T> void checkListElementNotNull(List<T> list, @Nullable Object errorMessage)
      Throws a NullPointerException 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 using String.valueOf(Object).