public class Key<T> extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Key<T>>
Object representing a job or trigger key.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_GROUP
The default group for scheduling entities, with the value "DEFAULT".
|
| Constructor and Description |
|---|
Key(java.lang.String name,
java.lang.String group)
Construct a new key with the given name and group.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Key<T> o) |
static java.lang.String |
createUniqueName(java.lang.String group) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroup()
Get the group portion of the key.
|
java.lang.String |
getName()
Get the name portion of the key.
|
int |
hashCode() |
java.lang.String |
toString()
Return the string representation of the key.
|
public static final java.lang.String DEFAULT_GROUP
public Key(java.lang.String name,
java.lang.String group)
name - the namegroup - the grouppublic java.lang.String getName()
Get the name portion of the key.
public java.lang.String getGroup()
Get the group portion of the key.
public java.lang.String toString()
Return the string representation of the key. The format will be: <group>.<name>.
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static java.lang.String createUniqueName(java.lang.String group)
Copyright IBM Corp. 2024, 2025