1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2 <!--NewPage--> 3 <HTML> 4 <HEAD> 5 <!-- Generated by javadoc (build 1.6.0-google-internal) on Mon Jan 04 20:48:01 PST 2010 --> 6 <TITLE> 7 Uses of Class com.google.common.collect.ComparisonChain (Guava Libraries 2010.01.04) 8 </TITLE> 9 10 <META NAME="date" CONTENT="2010-01-04"> 11 12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> 13 14 <SCRIPT type="text/javascript"> 15 function windowTitle() 16 { 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="Uses of Class com.google.common.collect.ComparisonChain (Guava Libraries 2010.01.04)"; 19 } 20 } 21 </SCRIPT> 22 <NOSCRIPT> 23 </NOSCRIPT> 24 25 </HEAD> 26 27 <BODY BGCOLOR="white" onload="windowTitle();"> 28 <HR> 29 30 31 <!-- ========= START OF TOP NAVBAR ======= --> 32 <A NAME="navbar_top"><!-- --></A> 33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35 <TR> 36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37 <A NAME="navbar_top_firstrow"><!-- --></A> 38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 48 </TR> 49 </TABLE> 50 </TD> 51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 52 </EM> 53 </TD> 54 </TR> 55 56 <TR> 57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 PREV 59 NEXT</FONT></TD> 60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../../../index.html?com/google/common/collect//class-useComparisonChain.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="ComparisonChain.html" target="_top"><B>NO FRAMES</B></A> 63 <SCRIPT type="text/javascript"> 64 <!-- 65 if(window==top) { 66 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 67 } 68 //--> 69 </SCRIPT> 70 <NOSCRIPT> 71 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 72 </NOSCRIPT> 73 74 75 </FONT></TD> 76 </TR> 77 </TABLE> 78 <A NAME="skip-navbar_top"></A> 79 <!-- ========= END OF TOP NAVBAR ========= --> 80 81 <HR> 82 <CENTER> 83 <H2> 84 <B>Uses of Class<br>com.google.common.collect.ComparisonChain</B></H2> 85 </CENTER> 86 87 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 88 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 89 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 90 Packages that use <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></FONT></TH> 91 </TR> 92 <TR BGCOLOR="white" CLASS="TableRowColor"> 93 <TD><A HREF="#com.google.common.collect"><B>com.google.common.collect</B></A></TD> 94 <TD>This package contains generic collection interfaces and implementations, and 95 other utilities for working with collections. </TD> 96 </TR> 97 </TABLE> 98 99 <P> 100 <A NAME="com.google.common.collect"><!-- --></A> 101 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 102 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 103 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 104 Uses of <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A> in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A></FONT></TH> 105 </TR> 106 </TABLE> 107 108 <P> 109 110 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 111 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 112 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A> that return <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></FONT></TH> 113 </TR> 114 <TR BGCOLOR="white" CLASS="TableRowColor"> 115 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 116 <CODE>abstract <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 117 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#compare(boolean, boolean)">compare</A></B>(boolean left, 118 boolean right)</CODE> 119 120 <BR> 121 Compares two <code>boolean</code> values as specified by <A HREF="../../../../../com/google/common/primitives/Booleans.html#compare(boolean, boolean)"><CODE>Booleans.compare(boolean, boolean)</CODE></A>, <i>if</i> the result of this comparison chain has not 122 already been determined.</TD> 123 </TR> 124 <TR BGCOLOR="white" CLASS="TableRowColor"> 125 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 126 <CODE>abstract <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 127 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#compare(java.lang.Comparable, java.lang.Comparable)">compare</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A><?> left, 128 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A><?> right)</CODE> 129 130 <BR> 131 Compares two comparable objects as specified by <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang"><CODE>Comparable.compareTo(T)</CODE></A>, <i>if</i> the result of this comparison chain 132 has not already been determined.</TD> 133 </TR> 134 <TR BGCOLOR="white" CLASS="TableRowColor"> 135 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 136 <CODE>abstract <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 137 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#compare(double, double)">compare</A></B>(double left, 138 double right)</CODE> 139 140 <BR> 141 Compares two <code>double</code> values as specified by <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Double.html?is-external=true#compare(double, double)" title="class or interface in java.lang"><CODE>Double.compare(double, double)</CODE></A>, <i>if</i> the result of this comparison chain has not 142 already been determined.</TD> 143 </TR> 144 <TR BGCOLOR="white" CLASS="TableRowColor"> 145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 146 <CODE>abstract <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 147 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#compare(float, float)">compare</A></B>(float left, 148 float right)</CODE> 149 150 <BR> 151 Compares two <code>float</code> values as specified by <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Float.html?is-external=true#compare(float, float)" title="class or interface in java.lang"><CODE>Float.compare(float, float)</CODE></A>, <i>if</i> the result of this comparison chain has not 152 already been determined.</TD> 153 </TR> 154 <TR BGCOLOR="white" CLASS="TableRowColor"> 155 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 156 <CODE>abstract <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 157 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#compare(int, int)">compare</A></B>(int left, 158 int right)</CODE> 159 160 <BR> 161 Compares two <code>int</code> values as specified by <A HREF="../../../../../com/google/common/primitives/Ints.html#compare(int, int)"><CODE>Ints.compare(int, int)</CODE></A>, 162 <i>if</i> the result of this comparison chain has not already been 163 determined.</TD> 164 </TR> 165 <TR BGCOLOR="white" CLASS="TableRowColor"> 166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 167 <CODE>abstract <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 168 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#compare(long, long)">compare</A></B>(long left, 169 long right)</CODE> 170 171 <BR> 172 Compares two <code>long</code> values as specified by <A HREF="../../../../../com/google/common/primitives/Longs.html#compare(long, long)"><CODE>Longs.compare(long, long)</CODE></A>, 173 <i>if</i> the result of this comparison chain has not already been 174 determined.</TD> 175 </TR> 176 <TR BGCOLOR="white" CLASS="TableRowColor"> 177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 178 <CODE>abstract 179 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 180 <TR ALIGN="right" VALIGN=""> 181 <TD NOWRAP><FONT SIZE="-1"> 182 <CODE><T> <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 183 </TR> 184 </TABLE> 185 </CODE></FONT></TD> 186 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#compare(T, T, java.util.Comparator)">compare</A></B>(T left, 187 T right, 188 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A><T> comparator)</CODE> 189 190 <BR> 191 Compares two objects using a comparator, <i>if</i> the result of this 192 comparison chain has not already been determined.</TD> 193 </TR> 194 <TR BGCOLOR="white" CLASS="TableRowColor"> 195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 196 <CODE>static <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect">ComparisonChain</A></CODE></FONT></TD> 197 <TD><CODE><B>ComparisonChain.</B><B><A HREF="../../../../../com/google/common/collect/ComparisonChain.html#start()">start</A></B>()</CODE> 198 199 <BR> 200 Begins a new chained comparison statement.</TD> 201 </TR> 202 </TABLE> 203 204 <P> 205 <HR> 206 207 208 <!-- ======= START OF BOTTOM NAVBAR ====== --> 209 <A NAME="navbar_bottom"><!-- --></A> 210 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 211 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 212 <TR> 213 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 214 <A NAME="navbar_bottom_firstrow"><!-- --></A> 215 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 216 <TR ALIGN="center" VALIGN="top"> 217 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 218 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 219 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/collect/ComparisonChain.html" title="class in com.google.common.collect"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 220 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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> 225 </TR> 226 </TABLE> 227 </TD> 228 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 229 </EM> 230 </TD> 231 </TR> 232 233 <TR> 234 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 235 PREV 236 NEXT</FONT></TD> 237 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 238 <A HREF="../../../../../index.html?com/google/common/collect//class-useComparisonChain.html" target="_top"><B>FRAMES</B></A> 239 <A HREF="ComparisonChain.html" target="_top"><B>NO FRAMES</B></A> 240 <SCRIPT type="text/javascript"> 241 <!-- 242 if(window==top) { 243 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 244 } 245 //--> 246 </SCRIPT> 247 <NOSCRIPT> 248 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 249 </NOSCRIPT> 250 251 252 </FONT></TD> 253 </TR> 254 </TABLE> 255 <A NAME="skip-navbar_bottom"></A> 256 <!-- ======== END OF BOTTOM NAVBAR ======= --> 257 258 <HR> 259 260 </BODY> 261 </HTML> 262