Class Utilities


  • class Utilities
    extends java.lang.Object
    Misc utility methods. Don't make this class visible to the outside world. When we switch to JDK 1.7, re-check the sense of this class.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Utilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void checkNonNull​(java.lang.Object obj, java.lang.String name)
      This method is similar to Objects.requireNonNull().
      • Methods inherited from class java.lang.Object

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

      • Utilities

        private Utilities()
    • Method Detail

      • checkNonNull

        static void checkNonNull​(java.lang.Object obj,
                                 java.lang.String name)
        This method is similar to Objects.requireNonNull(). But this one is available for JDK 1.6 which is the current target of args4j. I didn't want to break compatibility with JDK 1.6.
        Parameters:
        obj - the object to check for null value.
        name - the object name. If obj is null, then an exception is constructed from this name.