Class Utils


  • public final class Utils
    extends java.lang.Object
    Utility class.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Utils()
      Prevent instantiation.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File createTempFile()
      Create an empty file in the default temporary-file directory.
      (package private) static void throwIllegalArgumentExceptionIfNull​(java.lang.Object toCheck, java.lang.String errorMessage)
      Throws an IllegalArgumentException with given error message if the first, toCheck, parameter 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()
        Prevent instantiation.
    • Method Detail

      • throwIllegalArgumentExceptionIfNull

        static void throwIllegalArgumentExceptionIfNull​(java.lang.Object toCheck,
                                                        java.lang.String errorMessage)
        Throws an IllegalArgumentException with given error message if the first, toCheck, parameter is null.
        Parameters:
        toCheck - an instance to check.
        errorMessage - message to set to the IllegalArgumentException thrown.
      • createTempFile

        public static java.io.File createTempFile()
                                           throws java.io.IOException
        Create an empty file in the default temporary-file directory.
        Returns:
        An abstract pathname denoting a newly-created empty file.
        Throws:
        java.io.IOException - if a file could not be created.