com.thinkaurelius.titan.diskstorage.util.time

## Class Durations

- java.lang.Object
- - com.thinkaurelius.titan.diskstorage.util.time.Durations

-     public class Durations
      extends Object

  Utility methods for dealing with `Duration`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Durations()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `compare(long length1, TimeUnit unit1, long length2, TimeUnit unit2)`
    `static Duration` | `min(Duration x, Duration y)`
    `static TimeUnit` | `parse(String unitName)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Durations

          public Durations()

  - ### Method Detail

    - #### min

          public static Duration min(Duration x,
                     Duration y)

    - #### parse

          public static TimeUnit parse(String unitName)

    - #### compare

          public static int compare(long length1,
                    TimeUnit unit1,
                    long length2,
                    TimeUnit unit2)

Copyright © 2012–2014. All rights reserved.