Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB