[ 
https://issues.apache.org/jira/browse/WICKET-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254574#comment-13254574
 ] 

Martin Grigorov commented on WICKET-1175:
-----------------------------------------

Welcome to the Big Data era :-)

I agree with Jesse - 'count' could be an 'int'.

Another way is to change the API to:

Iterator<? extends T> iterator(java.lang.Number first, java.lang.Number count);
Number size();

This way we will leave the impl to decide whether to use an Int or a Long: 
first.longValue() , count.intValue(). 
Wicket core repeaters will use the 'long' view as they do now but custom 
components may use 'short' if they want.
But this will be even more typing than the cast that you need to use now.
                
> IDataProvider-Overflow with size()
> ----------------------------------
>
>                 Key: WICKET-1175
>                 URL: https://issues.apache.org/jira/browse/WICKET-1175
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.0-rc1
>         Environment: any
>            Reporter: Jan Kriesten
>            Assignee: Igor Vaynberg
>             Fix For: 6.0.0-beta1
>
>         Attachments: 0001-Loop-should-not-use-long.patch
>
>
> Hi,
> I get an Integer-overflow with my Dataprovider (yeah, there are a couple of 
> entries in the database). Is there a reason why size() and iterator( first, 
> count ) are limited to Integer?
> Regards, --- Jan.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to