You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by ben <be...@intel.com> on 2013/04/05 01:46:31 UTC

ArrayList.contains() ?

Contains isn't implemented for a pivot arraylist like there is in java.util
correct?
Anyway to determine an object in a pivot arraylist other than comparing
list.indexOf(obj) == -1 



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/ArrayList-contains-tp4022554.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

RE: ArrayList.contains() ?

Posted by "Roger L. Whitcomb" <Ro...@actian.com>.
Hi Ben,
	That's right.  In general, Pivot was designed to have the
necessary APIs but not to add extra methods that could easily be coded
by application developers just for the sake of "completeness".  So, yes,
that is the easy thing to do to mimic "contains(...)":  indexOf(obj) !=
-1.

~Roger Whitcomb