Class TimeValue


  • @Immutable
    public class TimeValue
    extends Object
    Pair of TimeUnit and a value.
    Author:
    Philip Helger
    • Field Detail

      • SEC1

        public static final TimeValue SEC1
        Special instance representing 1 second
    • Constructor Detail

    • Method Detail

      • getDuration

        public long getDuration()
      • getAsNanos

        public long getAsNanos()
      • getAsMicros

        public long getAsMicros()
      • getAsMillis

        public long getAsMillis()
      • getAsSeconds

        public long getAsSeconds()
      • getAsMinutes

        public long getAsMinutes()
      • getAsHours

        public long getAsHours()
      • getAsDays

        public long getAsDays()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object