|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.collection.InterchangeablePair<First,Second>
public final class InterchangeablePair<First,Second>
General-purpose pair of values of any type. The pair equals another pair if the objects that form the pair equal in any order, ie. first pair first object equals (.equals) the second pair first object or second object, and the first pair second object equals the second pair first object or second object.
Constructor Summary | |
---|---|
InterchangeablePair(First first,
Second second)
Construct pair of values. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
First |
getFirst()
Returns first value within pair. |
Second |
getSecond()
Returns second value within pair. |
int |
hashCode()
|
void |
setFirst(First first)
Set the first value of the pair to a new value. |
void |
setSecond(Second second)
Set the second value of the pair to a new value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InterchangeablePair(First first, Second second)
first
- is the first valuesecond
- is the second valueMethod Detail |
---|
public First getFirst()
public Second getSecond()
public void setFirst(First first)
first
- value to be setpublic void setSecond(Second second)
second
- value to be setpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |