Final defenders

"Zdeněk Troníček" tronicek at fit.cvut.cz
Tue Aug 7 11:00:45 PDT 2012


Hi,

these methods should be in a class if they are useful. E.g. in
java.util.Collections.

Z.
-- 
Zdenek Tronicek
FIT CTU in Prague


Daniel Latrémolière napsal(a):
>
>>   - What about static methods: being considered by the EG
> Interesting. I hope this will be used in collections to avoid direct use
> of implementing classes and allow programming only with used interface
> (in many use-cases):
>
> public interface List {
>      ...
>      public static List createRandomAccess() {
>          return new ArrayList();
>      }
>
>      public static List createSequentialAccess() {
>          return new LinkedList();
>      }
>
> }
>
> Thanks,
> Daniel Latrémolière.
>
>
>



More information about the lambda-dev mailing list