a whole bunch of stuff
[ephemerata.git] / KezvhLib / lib / org.apache.commons.collections / apidocs / org / apache / commons / collections / functors / UniquePredicate.html
blob9b590976e50121f3a07f477acbb4797d45464a30
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.5.0_07) on Fri Apr 11 15:39:19 BST 2008 -->
6 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7 <TITLE>
8 UniquePredicate (Commons Collections 3.2.1 API)
9 </TITLE>
11 <META NAME="keywords" CONTENT="org.apache.commons.collections.functors.UniquePredicate class">
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
15 <SCRIPT type="text/javascript">
16 function windowTitle()
18 parent.document.title="UniquePredicate (Commons Collections 3.2.1 API)";
20 </SCRIPT>
21 <NOSCRIPT>
22 </NOSCRIPT>
24 </HEAD>
26 <BODY BGCOLOR="white" onload="windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME="navbar_top"><!-- --></A>
31 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
32 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33 <TR>
34 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
35 <A NAME="navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
37 <TR ALIGN="center" VALIGN="top">
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/UniquePredicate.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
46 </TR>
47 </TABLE>
48 </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
50 </EM>
51 </TD>
52 </TR>
54 <TR>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/TruePredicate.html" title="class in org.apache.commons.collections.functors"><B>PREV CLASS</B></A>&nbsp;
57 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/WhileClosure.html" title="class in org.apache.commons.collections.functors"><B>NEXT CLASS</B></A></FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../../../../index.html?org/apache/commons/collections/functors/UniquePredicate.html" target="_top"><B>FRAMES</B></A> &nbsp;
60 &nbsp;<A HREF="UniquePredicate.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
61 &nbsp;<SCRIPT type="text/javascript">
62 <!--
63 if(window==top) {
64 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66 //-->
67 </SCRIPT>
68 <NOSCRIPT>
69 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
70 </NOSCRIPT>
73 </FONT></TD>
74 </TR>
75 <TR>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
80 </TR>
81 </TABLE>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
85 <HR>
86 <!-- ======== START OF CLASS DATA ======== -->
87 <H2>
88 <FONT SIZE="-1">
89 org.apache.commons.collections.functors</FONT>
90 <BR>
91 Class UniquePredicate</H2>
92 <PRE>
93 java.lang.Object
94 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.collections.functors.UniquePredicate</B>
95 </PRE>
96 <DL>
97 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, <A HREF="../../../../../org/apache/commons/collections/Predicate.html" title="interface in org.apache.commons.collections">Predicate</A></DD>
98 </DL>
99 <HR>
100 <DL>
101 <DT><PRE>public final class <B>UniquePredicate</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/apache/commons/collections/Predicate.html" title="interface in org.apache.commons.collections">Predicate</A>, java.io.Serializable</DL>
102 </PRE>
105 Predicate implementation that returns true the first time an object is
106 passed into the predicate.
110 <DL>
111 <DT><B>Since:</B></DT>
112 <DD>Commons Collections 3.0</DD>
113 <DT><B>Version:</B></DT>
114 <DD>$Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $</DD>
115 <DT><B>Author:</B></DT>
116 <DD>Stephen Colebourne</DD>
117 <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.apache.commons.collections.functors.UniquePredicate">Serialized Form</A></DL>
118 <HR>
122 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
124 <A NAME="constructor_summary"><!-- --></A>
125 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
126 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
127 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
128 <B>Constructor Summary</B></FONT></TH>
129 </TR>
130 <TR BGCOLOR="white" CLASS="TableRowColor">
131 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/functors/UniquePredicate.html#UniquePredicate()">UniquePredicate</A></B>()</CODE>
133 <BR>
134 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that performs no validation.</TD>
135 </TR>
136 </TABLE>
137 &nbsp;
138 <!-- ========== METHOD SUMMARY =========== -->
140 <A NAME="method_summary"><!-- --></A>
141 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
142 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
143 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
144 <B>Method Summary</B></FONT></TH>
145 </TR>
146 <TR BGCOLOR="white" CLASS="TableRowColor">
147 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148 <CODE>&nbsp;boolean</CODE></FONT></TD>
149 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/functors/UniquePredicate.html#evaluate(java.lang.Object)">evaluate</A></B>(java.lang.Object&nbsp;object)</CODE>
151 <BR>
152 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluates the predicate returning true if the input object hasn't been
153 received yet.</TD>
154 </TR>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/collections/Predicate.html" title="interface in org.apache.commons.collections">Predicate</A></CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/functors/UniquePredicate.html#getInstance()">getInstance</A></B>()</CODE>
160 <BR>
161 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory to create the predicate.</TD>
162 </TR>
163 </TABLE>
164 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
165 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
166 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
167 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
171 </TR>
172 </TABLE>
173 &nbsp;
176 <!-- ========= CONSTRUCTOR DETAIL ======== -->
178 <A NAME="constructor_detail"><!-- --></A>
179 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
181 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
182 <B>Constructor Detail</B></FONT></TH>
183 </TR>
184 </TABLE>
186 <A NAME="UniquePredicate()"><!-- --></A><H3>
187 UniquePredicate</H3>
188 <PRE>
189 public <B>UniquePredicate</B>()</PRE>
190 <DL>
191 <DD>Constructor that performs no validation.
192 Use <code>getInstance</code> if you want that.
194 </DL>
196 <!-- ============ METHOD DETAIL ========== -->
198 <A NAME="method_detail"><!-- --></A>
199 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
200 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
201 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
202 <B>Method Detail</B></FONT></TH>
203 </TR>
204 </TABLE>
206 <A NAME="getInstance()"><!-- --></A><H3>
207 getInstance</H3>
208 <PRE>
209 public static <A HREF="../../../../../org/apache/commons/collections/Predicate.html" title="interface in org.apache.commons.collections">Predicate</A> <B>getInstance</B>()</PRE>
210 <DL>
211 <DD>Factory to create the predicate.
213 <DD><DL>
214 </DL>
215 </DD>
216 <DD><DL>
218 <DT><B>Returns:</B><DD>the predicate
219 <DT><B>Throws:</B>
220 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the predicate is null</DL>
221 </DD>
222 </DL>
223 <HR>
225 <A NAME="evaluate(java.lang.Object)"><!-- --></A><H3>
226 evaluate</H3>
227 <PRE>
228 public boolean <B>evaluate</B>(java.lang.Object&nbsp;object)</PRE>
229 <DL>
230 <DD>Evaluates the predicate returning true if the input object hasn't been
231 received yet.
233 <DD><DL>
234 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/collections/Predicate.html#evaluate(java.lang.Object)">evaluate</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/collections/Predicate.html" title="interface in org.apache.commons.collections">Predicate</A></CODE></DL>
235 </DD>
236 <DD><DL>
237 <DT><B>Parameters:</B><DD><CODE>object</CODE> - the input object
238 <DT><B>Returns:</B><DD>true if this is the first time the object is seen</DL>
239 </DD>
240 </DL>
241 <!-- ========= END OF CLASS DATA ========= -->
242 <HR>
245 <!-- ======= START OF BOTTOM NAVBAR ====== -->
246 <A NAME="navbar_bottom"><!-- --></A>
247 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
248 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
249 <TR>
250 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
251 <A NAME="navbar_bottom_firstrow"><!-- --></A>
252 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
253 <TR ALIGN="center" VALIGN="top">
254 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
255 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
256 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
257 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/UniquePredicate.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
258 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
259 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
260 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
261 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
262 </TR>
263 </TABLE>
264 </TD>
265 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
266 </EM>
267 </TD>
268 </TR>
270 <TR>
271 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
272 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/TruePredicate.html" title="class in org.apache.commons.collections.functors"><B>PREV CLASS</B></A>&nbsp;
273 &nbsp;<A HREF="../../../../../org/apache/commons/collections/functors/WhileClosure.html" title="class in org.apache.commons.collections.functors"><B>NEXT CLASS</B></A></FONT></TD>
274 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
275 <A HREF="../../../../../index.html?org/apache/commons/collections/functors/UniquePredicate.html" target="_top"><B>FRAMES</B></A> &nbsp;
276 &nbsp;<A HREF="UniquePredicate.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
277 &nbsp;<SCRIPT type="text/javascript">
278 <!--
279 if(window==top) {
280 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
282 //-->
283 </SCRIPT>
284 <NOSCRIPT>
285 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
286 </NOSCRIPT>
289 </FONT></TD>
290 </TR>
291 <TR>
292 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
293 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
294 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
295 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
296 </TR>
297 </TABLE>
298 <A NAME="skip-navbar_bottom"></A>
299 <!-- ======== END OF BOTTOM NAVBAR ======= -->
301 <HR>
302 Copyright © 2001-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
303 </BODY>
304 </HTML>