hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Dunning" <ted.dunn...@gmail.com>
Subject Re: Job API question - ArrayList instead of List?
Date Wed, 09 Jul 2008 06:55:38 GMT
It should specify an interface.

On Tue, Jul 8, 2008 at 3:11 PM, Lukas Vlcek <lukas.vlcek@gmail.com> wrote:

> Hi,
>
> Why the Job API is using ArrayList instead of List?
>
> It is used in constructor:
> public Job(JobConf jobConf, ArrayList<Job> dependingJobs)
>
> and one public method:
> public ArrayList<Job> getDependingJobs()
>
> Is there any reason why it is referencing to implementation while it could
> be replaced by interface?
>
> Regards,
> Lukas
>
> --
> http://blog.lukas-vlcek.com/
>



-- 
ted

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message