public class ObjectId
extends java.lang.Object
| Constructor and Description |
|---|
ObjectId(int time,
int machine,
int inc)
Deprecated.
this constructor uses the legacy format of
ObjectId.
Please use the modern ObjectId(int, int, int, short) instead. |
ObjectId(int timestamp,
int counter,
int randomValue1,
short randomValue2)
Constructs a new identifier
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCounter() |
int |
getInc()
Deprecated.
Use
getCounter() |
int |
getMachine()
Deprecated.
This method will be removed in a subsequent version of
bson4jackson. There is no replacement
|
int |
getRandomValue1() |
short |
getRandomValue2() |
int |
getTime()
Deprecated.
Use
getTimestamp() instead |
int |
getTimestamp() |
public ObjectId(int timestamp,
int counter,
int randomValue1,
short randomValue2)
timestamp - the timestampcounter - the counterrandomValue1 - a random valuerandomValue2 - a random value@Deprecated
public ObjectId(int time,
int machine,
int inc)
ObjectId.
Please use the modern ObjectId(int, int, int, short) instead.time - the timestampmachine - the machine IDinc - the counter@Deprecated public int getTime()
getTimestamp() insteadpublic int getTimestamp()
@Deprecated public int getMachine()
@Deprecated public int getInc()
getCounter()public int getCounter()
public int getRandomValue1()
public short getRandomValue2()