org.infinispan.schematic.document

## Class Timestamp

- java.lang.Object
- - org.infinispan.schematic.document.Timestamp

-     @Immutable
      @SerializeWith(value=Timestamp.Externalizer.class)
      public final class Timestamp
      extends Object

  A `timestamp` value for use within a `BSON object`. Note that using `Date` is recommended for most applications and use cases, as they are more generally suited for representing instants in time.
  Since:
    5.1

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Timestamp.Externalizer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Timestamp()`
    `Timestamp(Date date)`
    `Timestamp(int timeInSeconds, int inc)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `Date` | `getAsDate()`
    `int` | `getInc()`
    `int` | `getTime()`
    `int` | `hashCode()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Timestamp

          public Timestamp()

    - #### Timestamp

          public Timestamp(Date date)

    - #### Timestamp

          public Timestamp(int timeInSeconds,
                   int inc)

  - ### Method Detail

    - #### getTime

          public int getTime()

    - #### getInc

          public int getInc()

    - #### getAsDate

          public Date getAsDate()

    - #### 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 © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.