Class BsonTimestamp

java.lang.Object
de.bwaldvogel.mongo.bson.BsonTimestamp
All Implemented Interfaces:
Bson, java.io.Serializable, java.lang.Comparable<BsonTimestamp>

public final class BsonTimestamp
extends java.lang.Object
implements Bson, java.lang.Comparable<BsonTimestamp>
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected BsonTimestamp()  
      BsonTimestamp​(long value)  
      BsonTimestamp​(java.time.Instant instant, int increment)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(BsonTimestamp other)  
    boolean equals​(java.lang.Object o)  
    int getInc()  
    int getTime()  
    long getValue()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getValue

      public long getValue()
    • getTime

      public int getTime()
    • getInc

      public int getInc()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • compareTo

      public int compareTo​(BsonTimestamp other)
      Specified by:
      compareTo in interface java.lang.Comparable<BsonTimestamp>
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object