1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5 <!-- Generated by javadoc on Wed Jul 09 10:18:16 PDT 2003 -->
7 PC^
2: Class RunInfoComparatorSiteIdRunId
9 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../stylesheet.css" TITLE=
"Style">
11 <BODY BGCOLOR=
"white">
13 <!-- ========== START OF NAVBAR ========== -->
14 <A NAME=
"navbar_top"><!-- --></A>
15 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0">
17 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
18 <A NAME=
"navbar_top_firstrow"><!-- --></A>
19 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3">
20 <TR ALIGN=
"center" VALIGN=
"top">
21 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
22 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
23 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
24 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
25 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
26 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
30 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
31 Questions?
<A HREf=mailto:pc2@ecs.csus.edu
>Send mail to PC
<sup>2</sup></a></EM>
36 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
37 <A HREF=
"../../pc2/ex/RunInfoComparatorByTeam.html"><B>PREV CLASS
</B></A>
38 <A HREF=
"../../pc2/ex/SampleGetRunsClient.html"><B>NEXT CLASS
</B></A></FONT></TD>
39 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
40 <A HREF=
"../../index.html" TARGET=
"_top"><B>FRAMES
</B></A>
41 <A HREF=
"RunInfoComparatorSiteIdRunId.html" TARGET=
"_top"><B>NO FRAMES
</B></A></FONT></TD>
44 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
45 SUMMARY:
INNER
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
46 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
47 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
50 <!-- =========== END OF NAVBAR =========== -->
53 <!-- ======== START OF CLASS DATA ======== -->
58 Class RunInfoComparatorSiteIdRunId
</H2>
62 +--
<B>pc2.ex.RunInfoComparatorSiteIdRunId
</B>
65 <DT><B>All Implemented Interfaces:
</B> <DD>java.util.Comparator, java.io.Serializable
</DD>
69 <DT>public class
<B>RunInfoComparatorSiteIdRunId
</B><DT>extends java.lang.Object
<DT>implements java.io.Serializable, java.util.Comparator
</DL>
72 Comparator to sort RunInfo by Site Id and Run Id
75 <DT><B>See Also:
</B><DD><A HREF=
"../../serialized-form.html#pc2.ex.RunInfoComparatorSiteIdRunId">Serialized Form
</A></DL>
79 <!-- ======== INNER CLASS SUMMARY ======== -->
82 <!-- =========== FIELD SUMMARY =========== -->
85 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
87 <A NAME=
"constructor_summary"><!-- --></A>
88 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
89 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
90 <TD COLSPAN=
2><FONT SIZE=
"+2">
91 <B>Constructor Summary
</B></FONT></TD>
93 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
94 <TD><CODE><B><A HREF=
"../../pc2/ex/RunInfoComparatorSiteIdRunId.html#RunInfoComparatorSiteIdRunId()">RunInfoComparatorSiteIdRunId
</A></B>()
</CODE>
97 ScoreDataCompator constructor comment.
</TD>
101 <!-- ========== METHOD SUMMARY =========== -->
103 <A NAME=
"method_summary"><!-- --></A>
104 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
105 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
106 <TD COLSPAN=
2><FONT SIZE=
"+2">
107 <B>Method Summary
</B></FONT></TD>
109 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
110 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
111 <CODE> int
</CODE></FONT></TD>
112 <TD><CODE><B><A HREF=
"../../pc2/ex/RunInfoComparatorSiteIdRunId.html#compare(java.lang.Object, java.lang.Object)">compare
</A></B>(java.lang.Object
o1,
113 java.lang.Object
o2)
</CODE>
116 Compares its two arguments for order.
</TD>
119 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
120 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
121 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
122 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
124 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
125 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
128 <A NAME=
"methods_inherited_from_class_java.util.Comparator"><!-- --></A>
129 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
130 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
131 <TD><B>Methods inherited from interface java.util.Comparator
</B></TD>
133 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
134 <TD><CODE>equals
</CODE></TD>
140 <!-- ============ FIELD DETAIL =========== -->
143 <!-- ========= CONSTRUCTOR DETAIL ======== -->
145 <A NAME=
"constructor_detail"><!-- --></A>
146 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
147 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
148 <TD COLSPAN=
1><FONT SIZE=
"+2">
149 <B>Constructor Detail
</B></FONT></TD>
153 <A NAME=
"RunInfoComparatorSiteIdRunId()"><!-- --></A><H3>
154 RunInfoComparatorSiteIdRunId
</H3>
156 public
<B>RunInfoComparatorSiteIdRunId
</B>()
</PRE>
158 <DD>ScoreDataCompator constructor comment.
</DL>
160 <!-- ============ METHOD DETAIL ========== -->
162 <A NAME=
"method_detail"><!-- --></A>
163 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
164 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
165 <TD COLSPAN=
1><FONT SIZE=
"+2">
166 <B>Method Detail
</B></FONT></TD>
170 <A NAME=
"compare(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
173 public int
<B>compare
</B>(java.lang.Object
o1,
174 java.lang.Object
o2)
</PRE>
176 <DD>Compares its two arguments for order. Returns a negative integer,
177 zero, or a positive integer as the first argument is less than, equal
178 to, or greater than the second.
<p>
180 The implementor must ensure that
<tt>sgn(compare(x, y)) ==
181 -sgn(compare(y, x))
</tt> for all
<tt>x
</tt> and
<tt>y
</tt>. (This
182 implies that
<tt>compare(x, y)
</tt> must throw an exception if and only
183 if
<tt>compare(y, x)
</tt> throws an exception.)
<p>
185 The implementor must also ensure that the relation is transitive:
186 <tt>((compare(x, y)
>0)
&& (compare(y, z)
>0))
</tt> implies
187 <tt>compare(x, z)
>0</tt>.
<p>
189 Finally, the implementer must ensure that
<tt>compare(x, y)==
0</tt>
190 implies that
<tt>sgn(compare(x, z))==sgn(compare(y, z))
</tt> for all
193 It is generally the case, but
<i>not
</i> strictly required that
194 <tt>(compare(x, y)==
0) == (x.equals(y))
</tt>. Generally speaking,
195 any comparator that violates this condition should clearly indicate
196 this fact. The recommended language is
"Note: this comparator
197 imposes orderings that are inconsistent with equals."<DD><DL>
198 <DT><B>Specified by:
</B><DD><CODE>compare
</CODE> in interface
<CODE>java.util.Comparator
</CODE></DL>
201 <DT><B>Returns:
</B><DD>a negative integer, zero, or a positive integer as the
202 first argument is less than, equal to, or greater than the
203 second.
<DT><B>Throws:
</B><DD><CODE>ClassCastException
</CODE> - if the arguments' types prevent them from
204 being compared by this Comparator.
</DL>
207 <!-- ========= END OF CLASS DATA ========= -->
210 <!-- ========== START OF NAVBAR ========== -->
211 <A NAME=
"navbar_bottom"><!-- --></A>
212 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0">
214 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
215 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
216 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3">
217 <TR ALIGN=
"center" VALIGN=
"top">
218 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
219 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
220 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
221 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
222 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
223 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
227 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
228 Questions?
<A HREf=mailto:pc2@ecs.csus.edu
>Send mail to PC
<sup>2</sup></a></EM>
233 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
234 <A HREF=
"../../pc2/ex/RunInfoComparatorByTeam.html"><B>PREV CLASS
</B></A>
235 <A HREF=
"../../pc2/ex/SampleGetRunsClient.html"><B>NEXT CLASS
</B></A></FONT></TD>
236 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
237 <A HREF=
"../../index.html" TARGET=
"_top"><B>FRAMES
</B></A>
238 <A HREF=
"RunInfoComparatorSiteIdRunId.html" TARGET=
"_top"><B>NO FRAMES
</B></A></FONT></TD>
241 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
242 SUMMARY:
INNER
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
243 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
244 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
247 <!-- =========== END OF NAVBAR =========== -->