9 May 19:47
Re: Collection ? <?>
From: Futaleufu_John <jhalupka <at> cfinish.com>
Subject: Re: Collection ? <?>
Newsgroups: gmane.comp.java.ide.netbeans.user
Date: 2008-05-09 17:47:41 GMT
Subject: Re: Collection ? <?>
Newsgroups: gmane.comp.java.ide.netbeans.user
Date: 2008-05-09 17:47:41 GMT
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.
RSS Feed