OK...the api is coded to throw NoSuchElementException in this case,
and it is documented in the code. However the doc for throws clause is
not showing up in ur generated javadoc...
I fixed this issue by using any() method as all i need is to find if
the given data exists in the collection or not. can i assume that any
() method stops at the first match instead of iterating over the
entire collection?