Skip site navigation (1) Skip section navigation (2)

Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap

From: Lew <noone(at)lewscanon(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Date: 2012-05-13 20:44:26
Message-ID: jop6f5$it0$1@news.albasani.net (view raw or flat)
Thread:
Lists: pgsql-jdbc
Luis Flores wrote:
> So, excluding the example above, it is a good thing to replace Vector by
> List/ArrayList and Hashtable by Map/HashMap.
> In some case LinkedList is better than ArrayList.

Which is exactly why _usage_ of the list should be through the 'List' 
interface regardless of the implementation class.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

In response to

pgsql-jdbc by date

Next:From: Hiroshi SaitoDate: 2012-05-13 22:34:57
Subject: Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Previous:From: Maciek Sakrejda (msakrejd)Date: 2012-05-13 20:17:55
Subject: Re: Fwd: Cannot pass null in Parameter in Query for ISNULL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group