|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.Tuple.ComparablePair<T1,T2>
public static final class Tuple.ComparablePair<T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>>
A simple immutable Comparable pair (though the referenced items may be mutable). Either or both fields can be null.
Equality and hash are based on that of the two members. The natural ordering given by compareTo() is determined by "first", with "second" breaking ties.
| Field Summary | |
|---|---|
T1 |
first
The first member of the pair. |
T2 |
second
The second member of the pair. |
private static long |
serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/. |
| Constructor Summary | |
|---|---|
Tuple.ComparablePair(T1 first,
T2 second)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Tuple.ComparablePair<T1,T2> other)
The ordering is determined by "first", with "second" breaking ties. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Hash is based on that of the two members. |
java.lang.String |
toString()
Human-readable form. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final T1 extends java.lang.Comparable<T1> first
public final T2 extends java.lang.Comparable<T2> second
private static final long serialVersionUID
| Constructor Detail |
|---|
public Tuple.ComparablePair(T1 first,
T2 second)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(Tuple.ComparablePair<T1,T2> other)
compareTo in interface java.lang.Comparable<Tuple.ComparablePair<T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>>>
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||