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 RunInfoComparatorByTeam
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/RunInfoAndFiles.html"><B>PREV CLASS
</B></A>
38 <A HREF=
"../../pc2/ex/RunInfoComparatorSiteIdRunId.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=
"RunInfoComparatorByTeam.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 RunInfoComparatorByTeam
</H2>
62 +--
<B>pc2.ex.RunInfoComparatorByTeam
</B>
65 <DT><B>All Implemented Interfaces:
</B> <DD>java.util.Comparator, java.io.Serializable
</DD>
69 <DT>public class
<B>RunInfoComparatorByTeam
</B><DT>extends java.lang.Object
<DT>implements java.io.Serializable, java.util.Comparator
</DL>
72 Comparator to sort RunInfo by TeamId, SiteId, ProblemId,
73 elapsedMin, isSolved, RunId
76 <DT><B>See Also:
</B><DD><A HREF=
"../../serialized-form.html#pc2.ex.RunInfoComparatorByTeam">Serialized Form
</A></DL>
80 <!-- ======== INNER CLASS SUMMARY ======== -->
83 <!-- =========== FIELD SUMMARY =========== -->
86 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
88 <A NAME=
"constructor_summary"><!-- --></A>
89 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
90 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
91 <TD COLSPAN=
2><FONT SIZE=
"+2">
92 <B>Constructor Summary
</B></FONT></TD>
94 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
95 <TD><CODE><B><A HREF=
"../../pc2/ex/RunInfoComparatorByTeam.html#RunInfoComparatorByTeam()">RunInfoComparatorByTeam
</A></B>()
</CODE>
98 ScoreDataCompator constructor comment.
</TD>
102 <!-- ========== METHOD SUMMARY =========== -->
104 <A NAME=
"method_summary"><!-- --></A>
105 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
106 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
107 <TD COLSPAN=
2><FONT SIZE=
"+2">
108 <B>Method Summary
</B></FONT></TD>
110 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
111 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
112 <CODE> int
</CODE></FONT></TD>
113 <TD><CODE><B><A HREF=
"../../pc2/ex/RunInfoComparatorByTeam.html#compare(java.lang.Object, java.lang.Object)">compare
</A></B>(java.lang.Object
o1,
114 java.lang.Object
o2)
</CODE>
117 Compares its two arguments for order.
</TD>
120 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
121 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
122 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
123 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
125 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
126 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
129 <A NAME=
"methods_inherited_from_class_java.util.Comparator"><!-- --></A>
130 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
131 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
132 <TD><B>Methods inherited from interface java.util.Comparator
</B></TD>
134 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
135 <TD><CODE>equals
</CODE></TD>
141 <!-- ============ FIELD DETAIL =========== -->
144 <!-- ========= CONSTRUCTOR DETAIL ======== -->
146 <A NAME=
"constructor_detail"><!-- --></A>
147 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
148 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
149 <TD COLSPAN=
1><FONT SIZE=
"+2">
150 <B>Constructor Detail
</B></FONT></TD>
154 <A NAME=
"RunInfoComparatorByTeam()"><!-- --></A><H3>
155 RunInfoComparatorByTeam
</H3>
157 public
<B>RunInfoComparatorByTeam
</B>()
</PRE>
159 <DD>ScoreDataCompator constructor comment.
</DL>
161 <!-- ============ METHOD DETAIL ========== -->
163 <A NAME=
"method_detail"><!-- --></A>
164 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
165 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
166 <TD COLSPAN=
1><FONT SIZE=
"+2">
167 <B>Method Detail
</B></FONT></TD>
171 <A NAME=
"compare(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
174 public int
<B>compare
</B>(java.lang.Object
o1,
175 java.lang.Object
o2)
</PRE>
177 <DD>Compares its two arguments for order. Returns a negative integer,
178 zero, or a positive integer as the first argument is less than, equal
179 to, or greater than the second.
<p>
181 The implementor must ensure that
<tt>sgn(compare(x, y)) ==
182 -sgn(compare(y, x))
</tt> for all
<tt>x
</tt> and
<tt>y
</tt>. (This
183 implies that
<tt>compare(x, y)
</tt> must throw an exception if and only
184 if
<tt>compare(y, x)
</tt> throws an exception.)
<p>
186 The implementor must also ensure that the relation is transitive:
187 <tt>((compare(x, y)
>0)
&& (compare(y, z)
>0))
</tt> implies
188 <tt>compare(x, z)
>0</tt>.
<p>
190 Finally, the implementer must ensure that
<tt>compare(x, y)==
0</tt>
191 implies that
<tt>sgn(compare(x, z))==sgn(compare(y, z))
</tt> for all
194 It is generally the case, but
<i>not
</i> strictly required that
195 <tt>(compare(x, y)==
0) == (x.equals(y))
</tt>. Generally speaking,
196 any comparator that violates this condition should clearly indicate
197 this fact. The recommended language is
"Note: this comparator
198 imposes orderings that are inconsistent with equals."<DD><DL>
199 <DT><B>Specified by:
</B><DD><CODE>compare
</CODE> in interface
<CODE>java.util.Comparator
</CODE></DL>
202 <DT><B>Returns:
</B><DD>a negative integer, zero, or a positive integer as the
203 first argument is less than, equal to, or greater than the
204 second.
<DT><B>Throws:
</B><DD><CODE>ClassCastException
</CODE> - if the arguments' types prevent them from
205 being compared by this Comparator.
</DL>
208 <!-- ========= END OF CLASS DATA ========= -->
211 <!-- ========== START OF NAVBAR ========== -->
212 <A NAME=
"navbar_bottom"><!-- --></A>
213 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0">
215 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
216 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
217 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3">
218 <TR ALIGN=
"center" VALIGN=
"top">
219 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
220 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
221 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
222 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
223 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
224 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
228 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
229 Questions?
<A HREf=mailto:pc2@ecs.csus.edu
>Send mail to PC
<sup>2</sup></a></EM>
234 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
235 <A HREF=
"../../pc2/ex/RunInfoAndFiles.html"><B>PREV CLASS
</B></A>
236 <A HREF=
"../../pc2/ex/RunInfoComparatorSiteIdRunId.html"><B>NEXT CLASS
</B></A></FONT></TD>
237 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
238 <A HREF=
"../../index.html" TARGET=
"_top"><B>FRAMES
</B></A>
239 <A HREF=
"RunInfoComparatorByTeam.html" TARGET=
"_top"><B>NO FRAMES
</B></A></FONT></TD>
242 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
243 SUMMARY:
INNER
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
244 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
245 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
248 <!-- =========== END OF NAVBAR =========== -->