public final class JobIdImpl extends Object implements JobId
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_JOB_NAME
Default job name
|
Constructor and Description |
---|
JobIdImpl(long id,
String readableName)
Default Job id constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JobId jobId) |
boolean |
equals(Object o) |
String |
getReadableName()
Return the human readable name associated to this id.
|
int |
hashCode()
Do not use this method to get the value as an INTEGER.
|
long |
longValue()
Returns the current value of the JobId.
|
static JobId |
makeJobId(String str)
Make a new JobId with the given arguments.
|
String |
toString() |
String |
value()
Get the value of the JobId.
|
public static final String DEFAULT_JOB_NAME
public JobIdImpl(long id, String readableName)
id
- the id to put in the jobIdreadableName
- the human readable name associated with this jobidpublic String getReadableName()
getReadableName
in interface JobId
public String value()
As the internal implementation of this class can change, It is strongly recommended to use this method to get a literal value of the ID. Use this value if you lost the jobId Object returned by the scheduler.
public long longValue()
public static JobId makeJobId(String str)
str
- the string on which to base the id.public int compareTo(JobId jobId)
compareTo
in interface Comparable<JobId>
public int hashCode()
Use the JobId.value()
method instead.
hashCode
in class Object
Object.hashCode()