<div dir="ltr">That is a good point, Galder.  Unfortunately the return type is lost since we only pass a name for the filterconverter factory instead of the converter which contains the type.  We would have to allow the code to specify the type in the assigned variable it is returned to or ask for a Class instance to be passed for inline type inference.<div><br></div><div>&lt;E&gt; CloseableIterator&lt;E&gt; <span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.6000003814697px;line-height:1.45;background-color:rgb(247,247,247)">retrieveEntries(...)</span></div><div><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:13.6000003814697px;line-height:19.7200012207031px"><br></span></font></div><div><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:13.6000003814697px;line-height:19.7200012207031px">CloseableIterator&lt;E&gt; </span></font><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.6000003814697px;line-height:1.45;background-color:rgb(247,247,247)">retrieveEntries(..., Class&lt;E&gt; returnType)</span></div><div><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:13.6000003814697px;line-height:19.7200012207031px"><br></span></font></div><div><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:13.6000003814697px;line-height:19.7200012207031px">:(<br></span></font><div><br></div><div> - Will<br><br><div class="gmail_quote">On Thu, May 7, 2015 at 11:07 AM Galder Zamarreño &lt;<a href="mailto:galder@redhat.com">galder@redhat.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks good, but had a question.<br>
<br>
CloseableIterator is typed as CloseableIterator&lt;E&gt;, what&#39;s the type that the method would return? I guess that would be dependant on the converter? How are you going to represent that?<br>
<br>
Cheers,<br>
<br>
&gt; On 28 Apr 2015, at 16:46, Gustavo Fernandes &lt;<a href="mailto:gustavo@infinispan.org" target="_blank">gustavo@infinispan.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi all, just updated [1]<br>
&gt;<br>
&gt; Comments and feedback appreciated!<br>
&gt;<br>
&gt; [1] <a href="https://github.com/infinispan/infinispan/wiki/Remote-Iterator" target="_blank">https://github.com/infinispan/infinispan/wiki/Remote-Iterator</a><br>
&gt;<br>
&gt; Thanks,<br>
&gt; Gustavo<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
<br>
--<br>
Galder Zamarreño<br>
<a href="mailto:galder@redhat.com" target="_blank">galder@redhat.com</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote></div></div></div></div>