Class CommandLineUtil


  • public class CommandLineUtil
    extends java.lang.Object
    Various CLI-utilities.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandLineUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long parseTimePeriod​(java.lang.String period)
      Parses a string of type "1y2mo3w4d5h6m7s", where the units represent years, months, weeks, days, hours, minutes and second respectively.
      • Methods inherited from class java.lang.Object

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

      • parseTimePeriod

        public static long parseTimePeriod​(java.lang.String period)
        Parses a string of type "1y2mo3w4d5h6m7s", where the units represent years, months, weeks, days, hours, minutes and second respectively. returns: the duration of the period represented by the string in seconds.