org.quartz.utils
Class Pair

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

public class Pair
extends java.lang.Object

Utility class for storing two pieces of information together.

Author:
Jeffrey Wescott

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

Constructor Detail

Pair

public Pair()

Pair

public Pair(java.lang.Object first,
            java.lang.Object second)
Method Detail

getFirst

public final java.lang.Object getFirst()

Get the first object in the pair.

Returns:
the first object

setFirst

public final void setFirst(java.lang.Object first)

Set the value of the first object in the pair.

Parameters:
first - the first object

getSecond

public final java.lang.Object getSecond()

Get the second object in the pair.

Returns:
the second object

setSecond

public final void setSecond(java.lang.Object second)

Set the second object in the pair.

Parameters:
second - the second object

equals

public boolean equals(java.lang.Object that)

Test equality of this object with that.

Overrides:
equals in class java.lang.Object
Parameters:
that - object to compare
Returns:
true if objects are equal, false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright 2001-2019, Terracotta, Inc.