|
|
Choosing A Webhost: |
Re: Java OpenGroupware API - annotations: msg#00009cms.opengroupware.xmlrpc.devel
Helge Hess wrote: Werner Schuster wrote: java knows enumerations too. but sometimes sun created a collection frameworks. they defined some interfaces like List, Collection, ... these Interfaces returns Iterators not Enumerations, but it almost the same under a new name ;) You could easily extend the Enumerator interface to include the size (eg this is pretty usual in SQL enumerators since most database send the size in advance). this you can fix if the client uses the iterator method of the new list implementation. but there are some cases the client needs think like element counting, getting elements by index, ... so you *need* a list interface. in those cases if you only provide a iterator the client will copy all elements into its own list/array/...
what will the client do with this records... mostly it'll display them...so you need all elements in RAM. otherwise you can use the iterator() method
burkhard -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Java OpenGroupware API - annotations, Burkhard Sell |
|---|---|
| Next by Date: | Re: Java OpenGroupware API - annotations, Andreas Rath |
| Previous by Thread: | Re: Java OpenGroupware API - annotations, Helge Hess |
| Next by Thread: | Re: Java OpenGroupware API - annotations, Helge Hess |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |