google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Allow Custom collection for query.list() #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is an enhancment request for QueryImpl.

originally posted here 
http://groups.google.com/group/objectify-appengine/browse_thread/thread/eb60b64c
270bca93# (Which was maybe the wrong place for this kind of thing?)

Id like to pass in my own collection and have objectify fill it up for me.
in QueryImpl:

/** @see com.googlecode.objectify.Query#list()   */
public Collection<T> collect(Collection<T> yourOwnCollection){
    for (T obj: this)
        yourOwnCollection.add(obj);

    return yourOwnCollection;
}

or similar.

this would save me a step in iterating through a list just to get a different 
collection impl

Can anyone submit patches?

cheers.

Original issue reported on code.google.com by senior.p...@gmail.com on 20 Aug 2011 at 5:56

GoogleCodeExporter commented 9 years ago

Original comment by lhori...@gmail.com on 16 Dec 2011 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by lhori...@gmail.com on 14 Apr 2014 at 12:37