Class Utils


  • @Immutable
    public final class Utils
    extends java.lang.Object
    General internal utility methods.

    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkArgument​(boolean isValid, java.lang.String errorMessage)
      Throws an IllegalArgumentException if the argument is false.
      • 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

      • checkArgument

        public static void checkArgument​(boolean isValid,
                                         java.lang.String errorMessage)
        Throws an IllegalArgumentException if the argument is false. This method is similar to Preconditions.checkArgument(boolean, Object) from Guava.
        Parameters:
        isValid - whether the argument check passed.
        errorMessage - the message to use for the exception.