Futaleufu_John | 9 May 19:47

Re: Collection ? <?>


The collection contains the same type of objects as are contained in the
returned list.

For example, if the returned list contains a list of Integers, then the
Collection will also contain a list of Integers. In this case the
declaration would look something like this...

import java.util.Collection;

Collection<Integer> search = searchQuery1.getResultList();

Steve Howerton wrote:
> 
> If I have this line in the code[icode]java.util.Collection search =
> searchQuery1.getResultList();[/icode] 
> Is this a collection of <list>? and can I find out if search should be
> named"Search" or does it have to be instantiated of something?
> 

--

-- 
View this message in context: http://www.nabble.com/Collection---%3C-%3E-tp17152485p17153238.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.


Gmane