|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.umd.cfar.lamp.viper.util.Pair
edu.umd.cfar.lamp.viper.util.Triple
An ordered set of three objects. It is sort-of-immutable, in that its reference elements cannot be switched with other elements.
| Constructor Summary | |
Triple(java.lang.Object first,
java.lang.Object second,
java.lang.Object third)
Constructs a new triple with the given objects. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Compares the elements of the triple with the elements of the target triple. |
java.lang.Object |
getThird()
Gets a reference to the third element. |
int |
hashCode()
The xor of the three elements of this. |
java.lang.String |
toString()
Uses the toString method to concatenate the elements together in a space-seperated list. |
| Methods inherited from class edu.umd.cfar.lamp.viper.util.Pair |
getFirst, getSecond |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Triple(java.lang.Object first,
java.lang.Object second,
java.lang.Object third)
first - the first elementsecond - the second elementthird - the third, final element| Method Detail |
public java.lang.String toString()
toString in class Pairpublic java.lang.Object getThird()
public boolean equals(java.lang.Object o)
equals in class Pairo - the object to compare with
true if all the elements of each are equalpublic int hashCode()
hashCode in class Pairfirst.hash ^ second.hash, basicallyPair.hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||