Package de.caluga.morphium.driver
Class MorphiumId
- java.lang.Object
-
- de.caluga.morphium.driver.MorphiumId
-
- All Implemented Interfaces:
Serializable,Comparable<MorphiumId>
public class MorphiumId extends Object implements Comparable<MorphiumId>, Serializable
Morphium representation of an ID. similar to BSON ID- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadLocal<Short>threadPid
-
Constructor Summary
Constructors Constructor Description MorphiumId()MorphiumId(byte[] bytes)MorphiumId(byte[] bytes, int idx)MorphiumId(String hexString)MorphiumId(Date date)MorphiumId(org.bson.types.ObjectId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MorphiumId o)booleanequals(Object o)byte[]getBytes()intgetCounter()intgetMachineId()shortgetPid()longgetTime()inthashCode()StringtoString()
-
-
-
Field Detail
-
threadPid
public static ThreadLocal<Short> threadPid
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
getTime
public long getTime()
-
getPid
public short getPid()
-
getCounter
public int getCounter()
-
getMachineId
public int getMachineId()
-
compareTo
public int compareTo(MorphiumId o)
- Specified by:
compareToin interfaceComparable<MorphiumId>
-
-