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:00 PST 2010 --> 6 <TITLE> 7 Uses of Interface com.google.common.base.Predicate (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 Interface com.google.common.base.Predicate (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/base/Predicate.html" title="interface in com.google.common.base"><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/base//class-usePredicate.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="Predicate.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 Interface<br>com.google.common.base.Predicate</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/base/Predicate.html" title="interface in com.google.common.base">Predicate</A></FONT></TH> 91 </TR> 92 <TR BGCOLOR="white" CLASS="TableRowColor"> 93 <TD><A HREF="#com.google.common.base"><B>com.google.common.base</B></A></TD> 94 <TD>Miscellaneous common util classes and annotations. </TD> 95 </TR> 96 <TR BGCOLOR="white" CLASS="TableRowColor"> 97 <TD><A HREF="#com.google.common.collect"><B>com.google.common.collect</B></A></TD> 98 <TD>This package contains generic collection interfaces and implementations, and 99 other utilities for working with collections. </TD> 100 </TR> 101 </TABLE> 102 103 <P> 104 <A NAME="com.google.common.base"><!-- --></A> 105 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 106 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 107 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 108 Uses of <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A> in <A HREF="../../../../../com/google/common/base/package-summary.html">com.google.common.base</A></FONT></TH> 109 </TR> 110 </TABLE> 111 112 <P> 113 114 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 115 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 116 <TH ALIGN="left" COLSPAN="2">Classes in <A HREF="../../../../../com/google/common/base/package-summary.html">com.google.common.base</A> that implement <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A></FONT></TH> 117 </TR> 118 <TR BGCOLOR="white" CLASS="TableRowColor"> 119 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 120 <CODE> class</CODE></FONT></TD> 121 <TD><CODE><B><A HREF="../../../../../com/google/common/base/CharMatcher.html" title="class in com.google.common.base">CharMatcher</A></B></CODE> 122 123 <BR> 124 Determines a true or false value for any Java <code>char</code> value, just as 125 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base"><CODE>Predicate</CODE></A> does for any <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><CODE>Object</CODE></A>.</TD> 126 </TR> 127 </TABLE> 128 129 <P> 130 131 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 132 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 133 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/base/package-summary.html">com.google.common.base</A> that return <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A></FONT></TH> 134 </TR> 135 <TR BGCOLOR="white" CLASS="TableRowColor"> 136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 137 <CODE>static 138 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 139 <TR ALIGN="right" VALIGN=""> 140 <TD NOWRAP><FONT SIZE="-1"> 141 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 142 </TR> 143 </TABLE> 144 </CODE></FONT></TD> 145 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#alwaysFalse()">alwaysFalse</A></B>()</CODE> 146 147 <BR> 148 Returns a predicate that always evaluates to <code>false</code>.</TD> 149 </TR> 150 <TR BGCOLOR="white" CLASS="TableRowColor"> 151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 152 <CODE>static 153 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 154 <TR ALIGN="right" VALIGN=""> 155 <TD NOWRAP><FONT SIZE="-1"> 156 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 157 </TR> 158 </TABLE> 159 </CODE></FONT></TD> 160 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#alwaysTrue()">alwaysTrue</A></B>()</CODE> 161 162 <BR> 163 Returns a predicate that always evaluates to <code>true</code>.</TD> 164 </TR> 165 <TR BGCOLOR="white" CLASS="TableRowColor"> 166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 167 <CODE>static 168 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 169 <TR ALIGN="right" VALIGN=""> 170 <TD NOWRAP><FONT SIZE="-1"> 171 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 172 </TR> 173 </TABLE> 174 </CODE></FONT></TD> 175 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#and(java.lang.Iterable)">and</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>> components)</CODE> 176 177 <BR> 178 Returns a predicate that evaluates to <code>true</code> if each of its 179 components evaluates to <code>true</code>.</TD> 180 </TR> 181 <TR BGCOLOR="white" CLASS="TableRowColor"> 182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 183 <CODE>static 184 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 185 <TR ALIGN="right" VALIGN=""> 186 <TD NOWRAP><FONT SIZE="-1"> 187 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 188 </TR> 189 </TABLE> 190 </CODE></FONT></TD> 191 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#and(com.google.common.base.Predicate...)">and</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>... components)</CODE> 192 193 <BR> 194 Returns a predicate that evaluates to <code>true</code> if each of its 195 components evaluates to <code>true</code>.</TD> 196 </TR> 197 <TR BGCOLOR="white" CLASS="TableRowColor"> 198 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 199 <CODE>static 200 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 201 <TR ALIGN="right" VALIGN=""> 202 <TD NOWRAP><FONT SIZE="-1"> 203 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 204 </TR> 205 </TABLE> 206 </CODE></FONT></TD> 207 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#and(com.google.common.base.Predicate, com.google.common.base.Predicate)">and</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> first, 208 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> second)</CODE> 209 210 <BR> 211 Returns a predicate that evaluates to <code>true</code> if both of its 212 components evaluate to <code>true</code>.</TD> 213 </TR> 214 <TR BGCOLOR="white" CLASS="TableRowColor"> 215 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 216 <CODE>static 217 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 218 <TR ALIGN="right" VALIGN=""> 219 <TD NOWRAP><FONT SIZE="-1"> 220 <CODE><A,B> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><A></CODE></FONT></TD> 221 </TR> 222 </TABLE> 223 </CODE></FONT></TD> 224 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#compose(com.google.common.base.Predicate, com.google.common.base.Function)">compose</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><B> predicate, 225 <A HREF="../../../../../com/google/common/base/Function.html" title="interface in com.google.common.base">Function</A><A,? extends B> function)</CODE> 226 227 <BR> 228 Returns the composition of a function and a predicate.</TD> 229 </TR> 230 <TR BGCOLOR="white" CLASS="TableRowColor"> 231 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 232 <CODE>static 233 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 234 <TR ALIGN="right" VALIGN=""> 235 <TD NOWRAP><FONT SIZE="-1"> 236 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 237 </TR> 238 </TABLE> 239 </CODE></FONT></TD> 240 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#equalTo(T)">equalTo</A></B>(T target)</CODE> 241 242 <BR> 243 Returns a predicate that evaluates to <code>true</code> if the object being 244 tested <code>equals()</code> the given target or both are null.</TD> 245 </TR> 246 <TR BGCOLOR="white" CLASS="TableRowColor"> 247 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 248 <CODE>static 249 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 250 <TR ALIGN="right" VALIGN=""> 251 <TD NOWRAP><FONT SIZE="-1"> 252 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 253 </TR> 254 </TABLE> 255 </CODE></FONT></TD> 256 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#in(java.util.Collection)">in</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><? extends T> target)</CODE> 257 258 <BR> 259 Returns a predicate that evaluates to <code>true</code> if the object reference 260 being tested is a member of the given collection.</TD> 261 </TR> 262 <TR BGCOLOR="white" CLASS="TableRowColor"> 263 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 264 <CODE>static <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>></CODE></FONT></TD> 265 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#instanceOf(java.lang.Class)">instanceOf</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</CODE> 266 267 <BR> 268 Returns a predicate that evaluates to <code>true</code> if the object being 269 tested is an instance of the given class.</TD> 270 </TR> 271 <TR BGCOLOR="white" CLASS="TableRowColor"> 272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 273 <CODE>static 274 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 275 <TR ALIGN="right" VALIGN=""> 276 <TD NOWRAP><FONT SIZE="-1"> 277 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 278 </TR> 279 </TABLE> 280 </CODE></FONT></TD> 281 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#isNull()">isNull</A></B>()</CODE> 282 283 <BR> 284 Returns a predicate that evaluates to <code>true</code> if the object reference 285 being tested is null.</TD> 286 </TR> 287 <TR BGCOLOR="white" CLASS="TableRowColor"> 288 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 289 <CODE>static 290 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 291 <TR ALIGN="right" VALIGN=""> 292 <TD NOWRAP><FONT SIZE="-1"> 293 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 294 </TR> 295 </TABLE> 296 </CODE></FONT></TD> 297 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#not(com.google.common.base.Predicate)">not</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T> predicate)</CODE> 298 299 <BR> 300 Returns a predicate that evaluates to <code>true</code> if the given predicate 301 evaluates to <code>false</code>.</TD> 302 </TR> 303 <TR BGCOLOR="white" CLASS="TableRowColor"> 304 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 305 <CODE>static 306 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 307 <TR ALIGN="right" VALIGN=""> 308 <TD NOWRAP><FONT SIZE="-1"> 309 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 310 </TR> 311 </TABLE> 312 </CODE></FONT></TD> 313 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#notNull()">notNull</A></B>()</CODE> 314 315 <BR> 316 Returns a predicate that evaluates to <code>true</code> if the object reference 317 being tested is not null.</TD> 318 </TR> 319 <TR BGCOLOR="white" CLASS="TableRowColor"> 320 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 321 <CODE>static 322 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 323 <TR ALIGN="right" VALIGN=""> 324 <TD NOWRAP><FONT SIZE="-1"> 325 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 326 </TR> 327 </TABLE> 328 </CODE></FONT></TD> 329 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#or(java.lang.Iterable)">or</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>> components)</CODE> 330 331 <BR> 332 Returns a predicate that evaluates to <code>true</code> if any one of its 333 components evaluates to <code>true</code>.</TD> 334 </TR> 335 <TR BGCOLOR="white" CLASS="TableRowColor"> 336 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 337 <CODE>static 338 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 339 <TR ALIGN="right" VALIGN=""> 340 <TD NOWRAP><FONT SIZE="-1"> 341 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 342 </TR> 343 </TABLE> 344 </CODE></FONT></TD> 345 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#or(com.google.common.base.Predicate...)">or</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>... components)</CODE> 346 347 <BR> 348 Returns a predicate that evaluates to <code>true</code> if any one of its 349 components evaluates to <code>true</code>.</TD> 350 </TR> 351 <TR BGCOLOR="white" CLASS="TableRowColor"> 352 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 353 <CODE>static 354 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 355 <TR ALIGN="right" VALIGN=""> 356 <TD NOWRAP><FONT SIZE="-1"> 357 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 358 </TR> 359 </TABLE> 360 </CODE></FONT></TD> 361 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#or(com.google.common.base.Predicate, com.google.common.base.Predicate)">or</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> first, 362 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> second)</CODE> 363 364 <BR> 365 Returns a predicate that evaluates to <code>true</code> if either of its 366 components evaluates to <code>true</code>.</TD> 367 </TR> 368 </TABLE> 369 370 <P> 371 372 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 373 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 374 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/base/package-summary.html">com.google.common.base</A> with parameters of type <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A></FONT></TH> 375 </TR> 376 <TR BGCOLOR="white" CLASS="TableRowColor"> 377 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 378 <CODE>static 379 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 380 <TR ALIGN="right" VALIGN=""> 381 <TD NOWRAP><FONT SIZE="-1"> 382 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 383 </TR> 384 </TABLE> 385 </CODE></FONT></TD> 386 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#and(com.google.common.base.Predicate...)">and</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>... components)</CODE> 387 388 <BR> 389 Returns a predicate that evaluates to <code>true</code> if each of its 390 components evaluates to <code>true</code>.</TD> 391 </TR> 392 <TR BGCOLOR="white" CLASS="TableRowColor"> 393 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 394 <CODE>static 395 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 396 <TR ALIGN="right" VALIGN=""> 397 <TD NOWRAP><FONT SIZE="-1"> 398 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 399 </TR> 400 </TABLE> 401 </CODE></FONT></TD> 402 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#and(com.google.common.base.Predicate, com.google.common.base.Predicate)">and</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> first, 403 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> second)</CODE> 404 405 <BR> 406 Returns a predicate that evaluates to <code>true</code> if both of its 407 components evaluate to <code>true</code>.</TD> 408 </TR> 409 <TR BGCOLOR="white" CLASS="TableRowColor"> 410 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 411 <CODE>static 412 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 413 <TR ALIGN="right" VALIGN=""> 414 <TD NOWRAP><FONT SIZE="-1"> 415 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 416 </TR> 417 </TABLE> 418 </CODE></FONT></TD> 419 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#and(com.google.common.base.Predicate, com.google.common.base.Predicate)">and</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> first, 420 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> second)</CODE> 421 422 <BR> 423 Returns a predicate that evaluates to <code>true</code> if both of its 424 components evaluate to <code>true</code>.</TD> 425 </TR> 426 <TR BGCOLOR="white" CLASS="TableRowColor"> 427 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 428 <CODE>static 429 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 430 <TR ALIGN="right" VALIGN=""> 431 <TD NOWRAP><FONT SIZE="-1"> 432 <CODE><A,B> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><A></CODE></FONT></TD> 433 </TR> 434 </TABLE> 435 </CODE></FONT></TD> 436 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#compose(com.google.common.base.Predicate, com.google.common.base.Function)">compose</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><B> predicate, 437 <A HREF="../../../../../com/google/common/base/Function.html" title="interface in com.google.common.base">Function</A><A,? extends B> function)</CODE> 438 439 <BR> 440 Returns the composition of a function and a predicate.</TD> 441 </TR> 442 <TR BGCOLOR="white" CLASS="TableRowColor"> 443 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 444 <CODE>static <A HREF="../../../../../com/google/common/base/CharMatcher.html" title="class in com.google.common.base">CharMatcher</A></CODE></FONT></TD> 445 <TD><CODE><B>CharMatcher.</B><B><A HREF="../../../../../com/google/common/base/CharMatcher.html#forPredicate(com.google.common.base.Predicate)">forPredicate</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang">Character</A>> predicate)</CODE> 446 447 <BR> 448 Returns a matcher with identical behavior to the given <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang"><CODE>Character</CODE></A>-based predicate, but which operates on primitive <code>char</code> 449 instances instead.</TD> 450 </TR> 451 <TR BGCOLOR="white" CLASS="TableRowColor"> 452 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 453 <CODE>static 454 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 455 <TR ALIGN="right" VALIGN=""> 456 <TD NOWRAP><FONT SIZE="-1"> 457 <CODE><T> <A HREF="../../../../../com/google/common/base/Function.html" title="interface in com.google.common.base">Function</A><T,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>></CODE></FONT></TD> 458 </TR> 459 </TABLE> 460 </CODE></FONT></TD> 461 <TD><CODE><B>Functions.</B><B><A HREF="../../../../../com/google/common/base/Functions.html#forPredicate(com.google.common.base.Predicate)">forPredicate</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T> predicate)</CODE> 462 463 <BR> 464 Creates a function that returns the same boolean output as the given 465 predicate for all inputs.</TD> 466 </TR> 467 <TR BGCOLOR="white" CLASS="TableRowColor"> 468 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 469 <CODE>static 470 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 471 <TR ALIGN="right" VALIGN=""> 472 <TD NOWRAP><FONT SIZE="-1"> 473 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 474 </TR> 475 </TABLE> 476 </CODE></FONT></TD> 477 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#not(com.google.common.base.Predicate)">not</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T> predicate)</CODE> 478 479 <BR> 480 Returns a predicate that evaluates to <code>true</code> if the given predicate 481 evaluates to <code>false</code>.</TD> 482 </TR> 483 <TR BGCOLOR="white" CLASS="TableRowColor"> 484 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 485 <CODE>static 486 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 487 <TR ALIGN="right" VALIGN=""> 488 <TD NOWRAP><FONT SIZE="-1"> 489 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 490 </TR> 491 </TABLE> 492 </CODE></FONT></TD> 493 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#or(com.google.common.base.Predicate...)">or</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>... components)</CODE> 494 495 <BR> 496 Returns a predicate that evaluates to <code>true</code> if any one of its 497 components evaluates to <code>true</code>.</TD> 498 </TR> 499 <TR BGCOLOR="white" CLASS="TableRowColor"> 500 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 501 <CODE>static 502 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 503 <TR ALIGN="right" VALIGN=""> 504 <TD NOWRAP><FONT SIZE="-1"> 505 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 506 </TR> 507 </TABLE> 508 </CODE></FONT></TD> 509 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#or(com.google.common.base.Predicate, com.google.common.base.Predicate)">or</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> first, 510 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> second)</CODE> 511 512 <BR> 513 Returns a predicate that evaluates to <code>true</code> if either of its 514 components evaluates to <code>true</code>.</TD> 515 </TR> 516 <TR BGCOLOR="white" CLASS="TableRowColor"> 517 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 518 <CODE>static 519 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 520 <TR ALIGN="right" VALIGN=""> 521 <TD NOWRAP><FONT SIZE="-1"> 522 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 523 </TR> 524 </TABLE> 525 </CODE></FONT></TD> 526 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#or(com.google.common.base.Predicate, com.google.common.base.Predicate)">or</A></B>(<A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> first, 527 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> second)</CODE> 528 529 <BR> 530 Returns a predicate that evaluates to <code>true</code> if either of its 531 components evaluates to <code>true</code>.</TD> 532 </TR> 533 </TABLE> 534 535 <P> 536 537 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 538 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 539 <TH ALIGN="left" COLSPAN="2">Method parameters in <A HREF="../../../../../com/google/common/base/package-summary.html">com.google.common.base</A> with type arguments of type <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A></FONT></TH> 540 </TR> 541 <TR BGCOLOR="white" CLASS="TableRowColor"> 542 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 543 <CODE>static 544 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 545 <TR ALIGN="right" VALIGN=""> 546 <TD NOWRAP><FONT SIZE="-1"> 547 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 548 </TR> 549 </TABLE> 550 </CODE></FONT></TD> 551 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#and(java.lang.Iterable)">and</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>> components)</CODE> 552 553 <BR> 554 Returns a predicate that evaluates to <code>true</code> if each of its 555 components evaluates to <code>true</code>.</TD> 556 </TR> 557 <TR BGCOLOR="white" CLASS="TableRowColor"> 558 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 559 <CODE>static 560 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 561 <TR ALIGN="right" VALIGN=""> 562 <TD NOWRAP><FONT SIZE="-1"> 563 <CODE><T> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><T></CODE></FONT></TD> 564 </TR> 565 </TABLE> 566 </CODE></FONT></TD> 567 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#or(java.lang.Iterable)">or</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T>> components)</CODE> 568 569 <BR> 570 Returns a predicate that evaluates to <code>true</code> if any one of its 571 components evaluates to <code>true</code>.</TD> 572 </TR> 573 </TABLE> 574 575 <P> 576 <A NAME="com.google.common.collect"><!-- --></A> 577 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 578 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 579 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 580 Uses of <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A> in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A></FONT></TH> 581 </TR> 582 </TABLE> 583 584 <P> 585 586 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 587 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 588 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A> with parameters of type <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A></FONT></TH> 589 </TR> 590 <TR BGCOLOR="white" CLASS="TableRowColor"> 591 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 592 <CODE>static 593 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 594 <TR ALIGN="right" VALIGN=""> 595 <TD NOWRAP><FONT SIZE="-1"> 596 <CODE><T> boolean</CODE></FONT></TD> 597 </TR> 598 </TABLE> 599 </CODE></FONT></TD> 600 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#all(java.lang.Iterable, com.google.common.base.Predicate)">all</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><T> iterable, 601 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 602 603 <BR> 604 Returns <code>true</code> if every element in <code>iterable</code> satisfies the 605 predicate.</TD> 606 </TR> 607 <TR BGCOLOR="white" CLASS="TableRowColor"> 608 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 609 <CODE>static 610 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 611 <TR ALIGN="right" VALIGN=""> 612 <TD NOWRAP><FONT SIZE="-1"> 613 <CODE><T> boolean</CODE></FONT></TD> 614 </TR> 615 </TABLE> 616 </CODE></FONT></TD> 617 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#all(java.util.Iterator, com.google.common.base.Predicate)">all</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><T> iterator, 618 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 619 620 <BR> 621 Returns <code>true</code> if every element returned by <code>iterator</code> 622 satisfies the given predicate.</TD> 623 </TR> 624 <TR BGCOLOR="white" CLASS="TableRowColor"> 625 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 626 <CODE>static 627 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 628 <TR ALIGN="right" VALIGN=""> 629 <TD NOWRAP><FONT SIZE="-1"> 630 <CODE><T> boolean</CODE></FONT></TD> 631 </TR> 632 </TABLE> 633 </CODE></FONT></TD> 634 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#any(java.lang.Iterable, com.google.common.base.Predicate)">any</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><T> iterable, 635 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 636 637 <BR> 638 Returns <code>true</code> if one or more elements in <code>iterable</code> satisfy 639 the predicate.</TD> 640 </TR> 641 <TR BGCOLOR="white" CLASS="TableRowColor"> 642 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 643 <CODE>static 644 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 645 <TR ALIGN="right" VALIGN=""> 646 <TD NOWRAP><FONT SIZE="-1"> 647 <CODE><T> boolean</CODE></FONT></TD> 648 </TR> 649 </TABLE> 650 </CODE></FONT></TD> 651 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#any(java.util.Iterator, com.google.common.base.Predicate)">any</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><T> iterator, 652 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 653 654 <BR> 655 Returns <code>true</code> if one or more elements returned by <code>iterator</code> 656 satisfy the given predicate.</TD> 657 </TR> 658 <TR BGCOLOR="white" CLASS="TableRowColor"> 659 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 660 <CODE>static 661 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 662 <TR ALIGN="right" VALIGN=""> 663 <TD NOWRAP><FONT SIZE="-1"> 664 <CODE><E> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><E></CODE></FONT></TD> 665 </TR> 666 </TABLE> 667 </CODE></FONT></TD> 668 <TD><CODE><B>Collections2.</B><B><A HREF="../../../../../com/google/common/collect/Collections2.html#filter(java.util.Collection, com.google.common.base.Predicate)">filter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><E> unfiltered, 669 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super E> predicate)</CODE> 670 671 <BR> 672 Returns the elements of <code>unfiltered</code> that satisfy a predicate.</TD> 673 </TR> 674 <TR BGCOLOR="white" CLASS="TableRowColor"> 675 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 676 <CODE>static 677 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 678 <TR ALIGN="right" VALIGN=""> 679 <TD NOWRAP><FONT SIZE="-1"> 680 <CODE><T> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><T></CODE></FONT></TD> 681 </TR> 682 </TABLE> 683 </CODE></FONT></TD> 684 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#filter(java.lang.Iterable, com.google.common.base.Predicate)">filter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><T> unfiltered, 685 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 686 687 <BR> 688 Returns the elements of <code>unfiltered</code> that satisfy a predicate.</TD> 689 </TR> 690 <TR BGCOLOR="white" CLASS="TableRowColor"> 691 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 692 <CODE>static 693 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 694 <TR ALIGN="right" VALIGN=""> 695 <TD NOWRAP><FONT SIZE="-1"> 696 <CODE><T> <A HREF="../../../../../com/google/common/collect/UnmodifiableIterator.html" title="class in com.google.common.collect">UnmodifiableIterator</A><T></CODE></FONT></TD> 697 </TR> 698 </TABLE> 699 </CODE></FONT></TD> 700 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#filter(java.util.Iterator, com.google.common.base.Predicate)">filter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><T> unfiltered, 701 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 702 703 <BR> 704 Returns the elements of <code>unfiltered</code> that satisfy a predicate.</TD> 705 </TR> 706 <TR BGCOLOR="white" CLASS="TableRowColor"> 707 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 708 <CODE>static 709 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 710 <TR ALIGN="right" VALIGN=""> 711 <TD NOWRAP><FONT SIZE="-1"> 712 <CODE><E> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><E></CODE></FONT></TD> 713 </TR> 714 </TABLE> 715 </CODE></FONT></TD> 716 <TD><CODE><B>Sets.</B><B><A HREF="../../../../../com/google/common/collect/Sets.html#filter(java.util.Set, com.google.common.base.Predicate)">filter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><E> unfiltered, 717 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super E> predicate)</CODE> 718 719 <BR> 720 Returns the elements of <code>unfiltered</code> that satisfy a predicate.</TD> 721 </TR> 722 <TR BGCOLOR="white" CLASS="TableRowColor"> 723 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 724 <CODE>static 725 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 726 <TR ALIGN="right" VALIGN=""> 727 <TD NOWRAP><FONT SIZE="-1"> 728 <CODE><K,V> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><K,V></CODE></FONT></TD> 729 </TR> 730 </TABLE> 731 </CODE></FONT></TD> 732 <TD><CODE><B>Maps.</B><B><A HREF="../../../../../com/google/common/collect/Maps.html#filterEntries(java.util.Map, com.google.common.base.Predicate)">filterEntries</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><K,V> unfiltered, 733 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A><K,V>> entryPredicate)</CODE> 734 735 <BR> 736 Returns a map containing the mappings in <code>unfiltered</code> that satisfy a 737 predicate.</TD> 738 </TR> 739 <TR BGCOLOR="white" CLASS="TableRowColor"> 740 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 741 <CODE>static 742 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 743 <TR ALIGN="right" VALIGN=""> 744 <TD NOWRAP><FONT SIZE="-1"> 745 <CODE><K,V> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><K,V></CODE></FONT></TD> 746 </TR> 747 </TABLE> 748 </CODE></FONT></TD> 749 <TD><CODE><B>Maps.</B><B><A HREF="../../../../../com/google/common/collect/Maps.html#filterKeys(java.util.Map, com.google.common.base.Predicate)">filterKeys</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><K,V> unfiltered, 750 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super K> keyPredicate)</CODE> 751 752 <BR> 753 Returns a map containing the mappings in <code>unfiltered</code> whose keys 754 satisfy a predicate.</TD> 755 </TR> 756 <TR BGCOLOR="white" CLASS="TableRowColor"> 757 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 758 <CODE>static 759 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 760 <TR ALIGN="right" VALIGN=""> 761 <TD NOWRAP><FONT SIZE="-1"> 762 <CODE><K,V> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><K,V></CODE></FONT></TD> 763 </TR> 764 </TABLE> 765 </CODE></FONT></TD> 766 <TD><CODE><B>Maps.</B><B><A HREF="../../../../../com/google/common/collect/Maps.html#filterValues(java.util.Map, com.google.common.base.Predicate)">filterValues</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><K,V> unfiltered, 767 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super V> valuePredicate)</CODE> 768 769 <BR> 770 Returns a map containing the mappings in <code>unfiltered</code> whose values 771 satisfy a predicate.</TD> 772 </TR> 773 <TR BGCOLOR="white" CLASS="TableRowColor"> 774 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 775 <CODE>static 776 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 777 <TR ALIGN="right" VALIGN=""> 778 <TD NOWRAP><FONT SIZE="-1"> 779 <CODE><T> T</CODE></FONT></TD> 780 </TR> 781 </TABLE> 782 </CODE></FONT></TD> 783 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#find(java.lang.Iterable, com.google.common.base.Predicate)">find</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><T> iterable, 784 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 785 786 <BR> 787 Returns the first element in <code>iterable</code> that satisfies the given 788 predicate.</TD> 789 </TR> 790 <TR BGCOLOR="white" CLASS="TableRowColor"> 791 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 792 <CODE>static 793 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 794 <TR ALIGN="right" VALIGN=""> 795 <TD NOWRAP><FONT SIZE="-1"> 796 <CODE><T> T</CODE></FONT></TD> 797 </TR> 798 </TABLE> 799 </CODE></FONT></TD> 800 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#find(java.util.Iterator, com.google.common.base.Predicate)">find</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><T> iterator, 801 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 802 803 <BR> 804 Returns the first element in <code>iterator</code> that satisfies the given 805 predicate.</TD> 806 </TR> 807 <TR BGCOLOR="white" CLASS="TableRowColor"> 808 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 809 <CODE>static 810 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 811 <TR ALIGN="right" VALIGN=""> 812 <TD NOWRAP><FONT SIZE="-1"> 813 <CODE><T> int</CODE></FONT></TD> 814 </TR> 815 </TABLE> 816 </CODE></FONT></TD> 817 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#indexOf(java.lang.Iterable, com.google.common.base.Predicate)">indexOf</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><T> iterable, 818 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 819 820 <BR> 821 Returns the index in <code>iterable</code> of the first element that satisfies 822 the provided <code>predicate</code>, or <code>-1</code> if the Iterable has no such 823 elements.</TD> 824 </TR> 825 <TR BGCOLOR="white" CLASS="TableRowColor"> 826 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 827 <CODE>static 828 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 829 <TR ALIGN="right" VALIGN=""> 830 <TD NOWRAP><FONT SIZE="-1"> 831 <CODE><T> int</CODE></FONT></TD> 832 </TR> 833 </TABLE> 834 </CODE></FONT></TD> 835 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#indexOf(java.util.Iterator, com.google.common.base.Predicate)">indexOf</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><T> iterator, 836 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 837 838 <BR> 839 Returns the index in <code>iterator</code> of the first element that satisfies 840 the provided <code>predicate</code>, or <code>-1</code> if the Iterator has no such 841 elements.</TD> 842 </TR> 843 <TR BGCOLOR="white" CLASS="TableRowColor"> 844 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 845 <CODE>static 846 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 847 <TR ALIGN="right" VALIGN=""> 848 <TD NOWRAP><FONT SIZE="-1"> 849 <CODE><T> boolean</CODE></FONT></TD> 850 </TR> 851 </TABLE> 852 </CODE></FONT></TD> 853 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#removeIf(java.lang.Iterable, com.google.common.base.Predicate)">removeIf</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><T> removeFrom, 854 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 855 856 <BR> 857 Removes, from an iterable, every element that satisfies the provided 858 predicate.</TD> 859 </TR> 860 <TR BGCOLOR="white" CLASS="TableRowColor"> 861 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 862 <CODE>static 863 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 864 <TR ALIGN="right" VALIGN=""> 865 <TD NOWRAP><FONT SIZE="-1"> 866 <CODE><T> boolean</CODE></FONT></TD> 867 </TR> 868 </TABLE> 869 </CODE></FONT></TD> 870 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#removeIf(java.util.Iterator, com.google.common.base.Predicate)">removeIf</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><T> removeFrom, 871 <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><? super T> predicate)</CODE> 872 873 <BR> 874 Removes every element that satisfies the provided predicate from the 875 iterator.</TD> 876 </TR> 877 </TABLE> 878 879 <P> 880 <HR> 881 882 883 <!-- ======= START OF BOTTOM NAVBAR ====== --> 884 <A NAME="navbar_bottom"><!-- --></A> 885 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 886 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 887 <TR> 888 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 889 <A NAME="navbar_bottom_firstrow"><!-- --></A> 890 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 891 <TR ALIGN="center" VALIGN="top"> 892 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 893 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 894 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 895 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 896 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 897 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 898 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 899 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 900 </TR> 901 </TABLE> 902 </TD> 903 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 904 </EM> 905 </TD> 906 </TR> 907 908 <TR> 909 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 910 PREV 911 NEXT</FONT></TD> 912 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 913 <A HREF="../../../../../index.html?com/google/common/base//class-usePredicate.html" target="_top"><B>FRAMES</B></A> 914 <A HREF="Predicate.html" target="_top"><B>NO FRAMES</B></A> 915 <SCRIPT type="text/javascript"> 916 <!-- 917 if(window==top) { 918 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 919 } 920 //--> 921 </SCRIPT> 922 <NOSCRIPT> 923 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 924 </NOSCRIPT> 925 926 927 </FONT></TD> 928 </TR> 929 </TABLE> 930 <A NAME="skip-navbar_bottom"></A> 931 <!-- ======== END OF BOTTOM NAVBAR ======= --> 932 933 <HR> 934 935 </BODY> 936 </HTML> 937