public interface TaskId extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
args() |
static TaskId |
create(String name,
Object... args)
Creates a
TaskId . |
int |
hash() |
String |
name() |
static TaskId |
parse(String stringId)
Parses a
TaskId based on a string representation. |
String name()
int hash()
String args()
static TaskId create(String name, Object... args)
TaskId
.
The task name can not contain any parenthesis.
name
- Task nameargs
- Arbitrary task argumentsIllegalArgumentException
- if the name contains any parenthesisstatic TaskId parse(String stringId)
TaskId
based on a string representation.
A parsed id is equal to a task id that was created using create(String, Object...)
.
stringId
- The id to parseIllegalArgumentException
- if the string does not conform to a task idCopyright © 2020. All rights reserved.