public class ObjectId extends Object
| Constructor and Description |
|---|
ObjectId(GlobalId globalId)
This constructor allows for a GlobalId to be passed in order
to create an ObjectId.
|
ObjectId(LocalId localId)
This constructor allows for a LocalId to be passed in order
to create an ObjectId.
|
ObjectId(String id)
This constructor allows for a String to be passed in order
to create an ObjectId.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getObjectId()
Get the objectId.
|
int |
hashCode() |
void |
setObjectId(ObjectId objectId)
Set the objectId with an ObjectId
|
String |
toString() |
public ObjectId(LocalId localId)
localId - the localId used to create the ObjectIdpublic ObjectId(GlobalId globalId)
globalId - the globalId used to create the ObjectIdpublic ObjectId(String id) throws IllegalArgumentException
id - The id of the new LocalId that will be createdIllegalArgumentException - when the id provided could not be parsed
into either a GlobalId or a LocalIdCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.