Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS, mail # dev - Java Generics in Writable Classes


Copy link to this message
-
Re: Java Generics in Writable Classes
Doug Cutting 2012-08-09, 21:24
On Tue, Aug 7, 2012 at 5:52 AM, Apurv Verma <[EMAIL PROTECTED]> wrote:
> why was it decided to declare them as
>
> public class IntWritable implements WritableComparable
>
> and not as
>
> public class IntWritable implements WritableComparable<IntWritable>

This class was written in 2003.  Generics were added to Java in 2004.

Doug