org.quartz.utils
Class Pair

java.lang.Object
  extended byorg.quartz.utils.Pair
Direct Known Subclasses:
Key, TriggerStatus

public class Pair
extends Object

Utility class for storing two pieces of information together.

Author:
Jeffrey Wescott

Constructor Summary
Pair()
           
 
Method Summary
 boolean equals(Object that)
           Test equality of this object with that.
 Object getFirst()
           Get the first object in the pair.
 Object getSecond()
           Get the second object in the pair.
 void setFirst(Object first)
           Set the value of the first object in the pair.
 void setSecond(Object second)
           Set the second object in the pair.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair()
Method Detail

getFirst

public final Object getFirst()

Get the first object in the pair.

Returns:
the first object

setFirst

public final void setFirst(Object first)

Set the value of the first object in the pair.

Parameters:
first - the first object

getSecond

public final Object getSecond()

Get the second object in the pair.

Returns:
the second object

setSecond

public final void setSecond(Object second)

Set the second object in the pair.

Parameters:
second - the second object

equals

public boolean equals(Object that)

Test equality of this object with that.

Parameters:
that - object to compare
Returns:
true if objects are equal, false otherwise

Quartz Enterprise Job Scheduler Project Page