I do like the idea of helper methods and classes for develoeprs but I
worry about hiding them inside the implemenation classes. In your
example last() would work for any implemenation of List so why hide it
inside the implementation?
James
> >
> > I don't know how this can be applied to GeoTools, though...
> Well what I mentioned the other day was this idea:
> public interface List {
> public Object get( int index );
> public int size();
> }
> public class ListImpl implements List {
> .....
> public Object last(){
> return get( size()-1 );
> }
> }
>
> The idea being that we can insert helper methods on our implementations,
> this is within the bounds of reason (as a lot of the time the interfaces
> will be in GeoAPI and out of our direct purview).
>
> Jody
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel