pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lew <noone@lewscanon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Date: Sun, 13 May 2012 13:44:26 -0700
Message-ID: <jop6f5$it0$1@news.albasani.net> (raw)
In-Reply-To: <CA+nXnG8b7wTkb9SM5dX-X9NrEBfHYk_-DCkyoFk_ssnKm2sS9Q@mail.gmail.com>
References: <4FA6BD06.4060308@ttc-cmc.net>
	<4FA6D821.5050701@dewire.com>
	<CA+nXnG-Ukv0gHU9UwCnDxJBqmWuCKPv8+pz-P=mbvOViLjbFCA@mail.gmail.com>
	<CA+nXnG8b7wTkb9SM5dX-X9NrEBfHYk_-DCkyoFk_ssnKm2sS9Q@mail.gmail.com>

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



view thread (9+ messages)  latest in thread

Message-ID: <jop6f5$it0$1@news.albasani.net>
Permalink:  ../jop6f5$it0$1@news.albasani.net/
Also on:    postgresql.org/message-id/jop6f5$it0$1@news.albasani.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: noone@lewscanon.com
  Subject: Re: Fwd: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
  In-Reply-To: <jop6f5$it0$1@news.albasani.net>
  References: <4FA6BD06.4060308@ttc-cmc.net> <4FA6D821.5050701@dewire.com> <CA+nXnG-Ukv0gHU9UwCnDxJBqmWuCKPv8+pz-P=mbvOViLjbFCA@mail.gmail.com> <CA+nXnG8b7wTkb9SM5dX-X9NrEBfHYk_-DCkyoFk_ssnKm2sS9Q@mail.gmail.com> <jop6f5$it0$1@news.albasani.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox