Class CommandLine.BuiltIn.ISO8601TimeConverter

  • All Implemented Interfaces:
    CommandLine.ITypeConverter<java.sql.Time>
    Enclosing class:
    CommandLine.BuiltIn

    static class CommandLine.BuiltIn.ISO8601TimeConverter
    extends java.lang.Object
    implements CommandLine.ITypeConverter<java.sql.Time>
    Converts text in any of the following formats to a java.sql.Time: HH:mm, HH:mm:ss, HH:mm:ss.SSS, HH:mm:ss,SSS. Other formats result in a ParameterException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Time convert​(java.lang.String value)
      Converts the specified command line argument value to some domain object.
      • Methods inherited from class java.lang.Object

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

      • ISO8601TimeConverter

        ISO8601TimeConverter()
    • Method Detail

      • convert

        public java.sql.Time convert​(java.lang.String value)
        Description copied from interface: CommandLine.ITypeConverter
        Converts the specified command line argument value to some domain object.
        Specified by:
        convert in interface CommandLine.ITypeConverter<java.sql.Time>
        Parameters:
        value - the command line argument String value
        Returns:
        the resulting domain object