DirectoryStreamFilters.newContentTypeFilter

Alan Bateman Alan.Bateman at Sun.COM
Thu Oct 23 10:43:44 PDT 2008


Rémi Forax wrote:
> Hi alan, hi all,
> DirectoryStreamFilters.newContentTypeFilter signature can be changed
> a little to use the method inference algorithm.
>
> public static DirectoryStream.Filter<FileRef> 
> newContentTypeFilter(String type)
> can be written:
> public static <T extends FileRef> DirectoryStream.Filter<T> 
> newContentTypeFilter(String type)
Sorry for the late reply (buried in too many issues). Yes, this seems a 
good idea. The returned filter does not depend on T so this is safe.  
Thanks again for spending time on this!

-Alan.



More information about the nio-dev mailing list