public class GroupId extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupId.Type |
| Constructor and Description |
|---|
GroupId(GroupId.Type type,
String objectId)
Backwards Compatibility.
|
GroupId(Object objectId)
If the given object is an objectId, create and store
Else we need the string representation to store, including the "@"
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static GroupId |
fromJson(String jsonId)
Backwards compatibility.
|
Object |
getObjectId()
Get the objectId
|
GroupId.Type |
getType()
Get the type of the stored objectId.
|
int |
hashCode() |
void |
setObjectId(String objectId)
Set the objectId with a String
|
String |
toString() |
public GroupId(Object objectId) throws IllegalArgumentException
objectId - ObjectIllegalArgumentExceptionpublic GroupId(GroupId.Type type, String objectId) throws IllegalArgumentException
type - objectId - IllegalArgumentException - when the provided objectId is not validpublic GroupId.Type getType()
public void setObjectId(String objectId) throws IllegalArgumentException
objectId - StringIllegalArgumentExceptionpublic Object getObjectId()
public static GroupId fromJson(String jsonId) throws IllegalArgumentException
jsonId - JSON string value of a GroupIdIllegalArgumentExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.