Class 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 a NullPointerException if any of the list elements is null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        private Utils()
    • Method Detail

      • checkListElementNotNull

        public static <T> void checkListElementNotNull​(java.util.List<T> list,
                                                       @Nullable
                                                       java.lang.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).