Class Timestamp

java.lang.Object
de.undercouch.bson4jackson.types.Timestamp

public class Timestamp extends Object
A special internal type used by MongoDB replication and sharding.
  • Field Details

    • _inc

      protected final int _inc
      The increment
    • _time

      protected final int _time
      The actual timestamp
  • Constructor Details

    • Timestamp

      public Timestamp(int time, int inc)
      Constructs a new timestamp object
      Parameters:
      time - the actual timestamp
      inc - the increment
  • Method Details

    • getInc

      public int getInc()
      Returns:
      the increment
    • getTime

      public int getTime()
      Returns:
      the actual timestamp
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object