Issue 11461

Accept subclasses of T in PagingResult<T> in common-api

11461
Reporter: mdoering
Assignee: mdoering
Type: Improvement
Summary: Accept subclasses of T in PagingResult<T> in common-api
Priority: Major
Resolution: WontFix
Status: Closed
Created: 2012-06-21 18:38:04.016
Updated: 2013-12-06 12:06:49.115
Resolved: 2012-10-01 17:30:12.993
        
Description: setter and getters of PagingResult should also accept subclasses of T. For example the Solr search implementations use subclass to add solr annotations.
The annotated solr class should not really appear in our search interfaces though, but currently has to.

Use ? extends T as the type:

private List results;
public List getResults() {...}
public void setResults(List results) {...}
]]>
    


Author: mdoering@gbif.org
Comment: patch out for review: http://dev.gbif.org/code/cru/CR-POR-55
Created: 2012-10-01 16:24:38.924
Updated: 2012-10-01 16:24:38.924


Author: mdoering@gbif.org
Comment: Doesnt seem to be needed anymore
Created: 2012-10-01 17:30:04.708
Updated: 2012-10-01 17:30:04.708