Commit inicial
[andmenj-acm.git] / PC^2 / pc2admin / doc / pc2ex / pc2 / ex / RunInfoComparatorByTeam.html
blobf5e13360c63253b7aeca67e5b52bb3d6d71dc95f
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc on Wed Jul 09 10:18:16 PDT 2003 -->
6 <TITLE>
7 PC^2: Class RunInfoComparatorByTeam
8 </TITLE>
9 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
10 </HEAD>
11 <BODY BGCOLOR="white">
13 <!-- ========== START OF NAVBAR ========== -->
14 <A NAME="navbar_top"><!-- --></A>
15 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
16 <TR>
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>&nbsp;</TD>
22 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
23 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
24 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
25 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
26 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
27 </TR>
28 </TABLE>
29 </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>
32 </TD>
33 </TR>
35 <TR>
36 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
37 &nbsp;<A HREF="../../pc2/ex/RunInfoAndFiles.html"><B>PREV CLASS</B></A>&nbsp;
38 &nbsp;<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> &nbsp;
41 &nbsp;<A HREF="RunInfoComparatorByTeam.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
42 </TR>
43 <TR>
44 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
45 SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
46 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
47 DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
48 </TR>
49 </TABLE>
50 <!-- =========== END OF NAVBAR =========== -->
52 <HR>
53 <!-- ======== START OF CLASS DATA ======== -->
54 <H2>
55 <FONT SIZE="-1">
56 pc2.ex</FONT>
57 <BR>
58 Class RunInfoComparatorByTeam</H2>
59 <PRE>
60 java.lang.Object
62 +--<B>pc2.ex.RunInfoComparatorByTeam</B>
63 </PRE>
64 <DL>
65 <DT><B>All Implemented Interfaces:</B> <DD>java.util.Comparator, java.io.Serializable</DD>
66 </DL>
67 <HR>
68 <DL>
69 <DT>public class <B>RunInfoComparatorByTeam</B><DT>extends java.lang.Object<DT>implements java.io.Serializable, java.util.Comparator</DL>
71 <P>
72 Comparator to sort RunInfo by TeamId, SiteId, ProblemId,
73 elapsedMin, isSolved, RunId
74 <P>
75 <DL>
76 <DT><B>See Also: </B><DD><A HREF="../../serialized-form.html#pc2.ex.RunInfoComparatorByTeam">Serialized Form</A></DL>
77 <HR>
79 <P>
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>
93 </TR>
94 <TR BGCOLOR="white" CLASS="TableRowColor">
95 <TD><CODE><B><A HREF="../../pc2/ex/RunInfoComparatorByTeam.html#RunInfoComparatorByTeam()">RunInfoComparatorByTeam</A></B>()</CODE>
97 <BR>
98 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ScoreDataCompator constructor comment.</TD>
99 </TR>
100 </TABLE>
101 &nbsp;
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>
109 </TR>
110 <TR BGCOLOR="white" CLASS="TableRowColor">
111 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
112 <CODE>&nbsp;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&nbsp;o1,
114 java.lang.Object&nbsp;o2)</CODE>
116 <BR>
117 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares its two arguments for order.</TD>
118 </TR>
119 </TABLE>
120 &nbsp;<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>
124 </TR>
125 <TR BGCOLOR="white" CLASS="TableRowColor">
126 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
127 </TR>
128 </TABLE>
129 &nbsp;<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>
133 </TR>
134 <TR BGCOLOR="white" CLASS="TableRowColor">
135 <TD><CODE>equals</CODE></TD>
136 </TR>
137 </TABLE>
138 &nbsp;
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>
151 </TR>
152 </TABLE>
154 <A NAME="RunInfoComparatorByTeam()"><!-- --></A><H3>
155 RunInfoComparatorByTeam</H3>
156 <PRE>
157 public <B>RunInfoComparatorByTeam</B>()</PRE>
158 <DL>
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>
168 </TR>
169 </TABLE>
171 <A NAME="compare(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
172 compare</H3>
173 <PRE>
174 public int <B>compare</B>(java.lang.Object&nbsp;o1,
175 java.lang.Object&nbsp;o2)</PRE>
176 <DL>
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)&gt;0) &amp;&amp; (compare(y, z)&gt;0))</tt> implies
188 <tt>compare(x, z)&gt;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
192 <tt>z</tt>.<p>
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>
200 </DD>
201 <DD><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>
206 </DD>
207 </DL>
208 <!-- ========= END OF CLASS DATA ========= -->
209 <HR>
211 <!-- ========== START OF NAVBAR ========== -->
212 <A NAME="navbar_bottom"><!-- --></A>
213 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
214 <TR>
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>&nbsp;</TD>
220 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
221 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
222 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
223 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
224 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
225 </TR>
226 </TABLE>
227 </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>
230 </TD>
231 </TR>
233 <TR>
234 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
235 &nbsp;<A HREF="../../pc2/ex/RunInfoAndFiles.html"><B>PREV CLASS</B></A>&nbsp;
236 &nbsp;<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> &nbsp;
239 &nbsp;<A HREF="RunInfoComparatorByTeam.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
240 </TR>
241 <TR>
242 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
243 SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
244 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
245 DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
246 </TR>
247 </TABLE>
248 <!-- =========== END OF NAVBAR =========== -->
250 <HR>
252 </BODY>
253 </HTML>