org.quartz.utils
Class Key

java.lang.Object
  extended by org.quartz.utils.Pair
      extended by org.quartz.utils.Key

public class Key
extends Pair

Object representing a job or trigger key.

Author:
Jeffrey Wescott

Constructor Summary
Key(java.lang.String name, java.lang.String group)
          Construct a new key with the given name and group.
 
Method Summary
 java.lang.String getGroup()
           Get the group portion of the key.
 java.lang.String getName()
           Get the name portion of the key.
 java.lang.String toString()
           Return the string representation of the key.
 
Methods inherited from class org.quartz.utils.Pair
equals, getFirst, getSecond, hashCode, setFirst, setSecond
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(java.lang.String name,
           java.lang.String group)
Construct a new key with the given name and group.

Parameters:
name - the name
group - the group
Method Detail

getName

public java.lang.String getName()

Get the name portion of the key.

Returns:
the name

getGroup

public java.lang.String getGroup()

Get the group portion of the key.

Returns:
the group

toString

public java.lang.String toString()

Return the string representation of the key. The format will be: <group>.<name>.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of the key


Copyright 2001-2019, Terracotta, Inc.