Class ParameterUtils


  • public class ParameterUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ParameterUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkNonEmptyString​(java.lang.String string, java.lang.String name)
      check whether the field is empty.
      • Methods inherited from class java.lang.Object

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

      • ParameterUtils

        public ParameterUtils()
    • Method Detail

      • checkNonEmptyString

        public static void checkNonEmptyString​(java.lang.String string,
                                               java.lang.String name)
                                        throws java.lang.IllegalArgumentException
        check whether the field is empty. If it is empty, an error will be thrown
        Parameters:
        string - string to check
        name - prompt information in error throwing
        Throws:
        java.lang.IllegalArgumentException