Package io.ray.api.id
Class ObjectId
java.lang.Object
io.ray.api.id.BaseId
io.ray.api.id.ObjectId
- All Implemented Interfaces:
Serializable
Represents the id of a Ray object.
- See Also:
- Serialized Form
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectIdfromByteBuffer(ByteBuffer bb)Create an ObjectId from a ByteBuffer.static ObjectIdGenerate an ObjectId with random value.intsize()Derived class should implement this function.Methods inherited from class io.ray.api.id.BaseId
byteBuffer2Bytes, equals, getBytes, hashCode, hexString2Bytes, isNil, toByteBuffer, toString
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
ObjectId
public ObjectId(byte[] id)
-
-
Method Details