Package de.caluga.morphium.driver
Class MorphiumId
java.lang.Object
de.caluga.morphium.driver.MorphiumId
- All Implemented Interfaces:
Serializable,Comparable<MorphiumId>
Morphium representation of an ID. similar to BSON ID
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMorphiumId(byte[] bytes) MorphiumId(byte[] bytes, int idx) MorphiumId(String hexString) MorphiumId(Date date) MorphiumId(org.bson.types.ObjectId id) -
Method Summary
-
Field Details
-
threadPid
-
-
Constructor Details
-
MorphiumId
public MorphiumId() -
MorphiumId
-
MorphiumId
-
MorphiumId
public MorphiumId(org.bson.types.ObjectId id) -
MorphiumId
public MorphiumId(byte[] bytes) -
MorphiumId
public MorphiumId(byte[] bytes, int idx)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getBytes
public byte[] getBytes() -
getTime
public long getTime() -
getPid
public short getPid() -
getCounter
public int getCounter() -
getMachineId
public int getMachineId() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<MorphiumId>
-