Class TimeValue

    • Field Detail

    • Constructor Detail

      • TimeValue

        public TimeValue​(long time,
                         TimeUnit timeUnit)
    • Method Detail

      • days

        public static TimeValue days​(long v)
      • hours

        public static TimeValue hours​(long v)
      • microseconds

        public static TimeValue microseconds​(long v)
      • milliseconds

        public static TimeValue milliseconds​(long v)
      • minutes

        public static TimeValue minutes​(long v)
      • nanoseconds

        public static TimeValue nanoseconds​(long v)
      • seconds

        public static TimeValue seconds​(long v)
      • getTime

        public long getTime()
      • convertTo

        public long convertTo​(TimeUnit tu)
      • getTimeUnit

        public TimeUnit getTimeUnit()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • tuToString

        public static String tuToString​(TimeUnit timeUnit)
        Converts timeunit to stringly representation.
        Parameters:
        timeUnit - timeunit to convert
        Returns:
        string representation
      • valueOf

        public static TimeValue valueOf​(String timeString)
        Parses time value from a string representation. This method is called by joptsimple to resolve string values.
        Parameters:
        timeString - string representation of a time value
        Returns:
        TimeValue value