de.undercouch.bson4jackson.types
Class Timestamp

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

public class Timestamp
extends java.lang.Object

A special internal type used by MongoDB replication and sharding.


Constructor Summary
Timestamp(int time, int inc)
          Constructs a new timestamp object
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getInc()
           
 int getTime()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timestamp

public Timestamp(int time,
                 int inc)
Constructs a new timestamp object

Parameters:
time - the actual timestamp
inc - the increment
Method Detail

getInc

public int getInc()
Returns:
the increment

getTime

public int getTime()
Returns:
the actual timestamp

equals

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