public final class Identifier extends Object implements Serializable
toString()
and fromString(String)
.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Identifier |
fromString(String identifier)
Creates an identifier from its string representation.
|
long |
getModelInstanceId()
Returns the model instance id.
|
Long |
getTaskId()
Returns the task id.
|
int |
hashCode() |
static Identifier |
ofModelInstance(long modelInstanceId)
Creates an identifier for the specified model instance id.
|
static Identifier |
ofTask(long modelInstanceId,
long taskId)
Creates an identifier for the specified model instance task.
|
String |
toString()
Returns a string representation of this identifier.
|
public static Identifier ofModelInstance(long modelInstanceId)
modelInstanceId
- the model instance idpublic static Identifier ofTask(long modelInstanceId, long taskId)
modelInstanceId
- the model instance idtaskId
- the task idpublic long getModelInstanceId()
public Long getTaskId()
public String toString()
fromString(String)
converts the string representation back to the identifier.public static Identifier fromString(String identifier)
identifier
- the identifier string representationIllegalArgumentException
- if the specified string is not a valid identifierCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.