public final class Identifier
extends java.lang.Object
implements java.io.Serializable
toString() and fromString(String).| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static Identifier |
fromString(java.lang.String identifier)
Creates an identifier from its string representation.
|
long |
getModelInstanceId()
Returns the model instance id.
|
java.lang.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.
|
java.lang.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 java.lang.Long getTaskId()
public java.lang.String toString()
fromString(String)
converts the string representation back to the identifier.toString in class java.lang.Objectpublic static Identifier fromString(java.lang.String identifier)
identifier - the identifier string representationjava.lang.IllegalArgumentException - if the specified string is not a valid identifierpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.