com.thinkaurelius.titan.diskstorage.util.time

## Class StandardTimestamp

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

- All Implemented Interfaces:
    Timestamp, Comparable<Timestamp>

      public class StandardTimestamp
      extends Object
      implements Timestamp

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StandardTimestamp(long sinceEpoch, TimeUnit unit)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(Timestamp o)`
    `boolean` | `equals(Object obj)`
    `TimeUnit` | `getNativeUnit()` Returns the native unit used by this Timestamp.
    `int` | `hashCode()`
    `long` | `sinceEpoch(TimeUnit target)` Returns the length of time since UNIX epoch in the given `TimeUnit`.
    `String` | `toString()`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### StandardTimestamp

          public StandardTimestamp(long sinceEpoch,
                           TimeUnit unit)

  - ### Method Detail

    - #### compareTo

          public int compareTo(Timestamp o)

      Specified by:
        `compareTo` in interface `Comparable<Timestamp>`

    - #### sinceEpoch

          public long sinceEpoch(TimeUnit target)

      Description copied from interface: `Timestamp`
      Returns the length of time since UNIX epoch in the given `TimeUnit`.
      Specified by:
        `sinceEpoch` in interface `Timestamp`
      Returns:

    - #### getNativeUnit

          public TimeUnit getNativeUnit()

      Description copied from interface: `Timestamp`
      Returns the native unit used by this Timestamp. The actual time is specified in this unit of time.
      Specified by:
        `getNativeUnit` in interface `Timestamp`
      Returns:

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2012–2014. All rights reserved.