org.bson.types

Class BSONTimestamp

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int compareTo(BSONTimestamp ts) 
      boolean equals(java.lang.Object obj) 
      int getInc() 
      int getTime() 
      int hashCode() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

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

      • BSONTimestamp

        public BSONTimestamp()
      • BSONTimestamp

        public BSONTimestamp(int time,
                     int inc)
    • Method Detail

      • getTime

        public int getTime()
        Returns:
        get time in seconds since epoch
      • getInc

        public int getInc()
      • toString

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

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

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object