Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3223

Re: Initializing from context passing

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: Initializing from context passing
Date 2011-04-23 18:35 -0400
Organization albasani.net
Message-ID <iovk75$jdp$3@news.albasani.net> (permalink)
References <91ga4tF38vU1@mid.individual.net> <iouv3r$5ls$1@dont-email.me> <91gnv8F6ooU1@mid.individual.net>

Show all headers | View raw


On 04/23/2011 03:34 PM, Dirk Bruere at NeoPax wrote:
> Daniele Futtorovic wrote:
>> And do use interface types rather than implementations, unless you
>> specifically rely on a detail of the implementation (which is often a
>> bad sign). That is, make it a List<T>, not an ArrayList<T>.
>
> I would appreciate a pointer to an example.
> Everything I have come across in the Android examples I have seen uses
> ArrayAdapter

They said to use 'List' instead of 'ArrayList', not instead of 'ArrayAdapter'!

It makes absolutely no sense, and would not compile, to use 'List' in lieu of 
'ArrayAdapter', n'est-ce pas?

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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Initializing from context passing Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-23 16:39 +0100
  Re: Initializing from context passing Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-04-23 18:35 +0200
    Re: Initializing from context passing Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-23 19:12 +0100
      Re: Initializing from context passing Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-04-23 21:47 +0200
    Re: Initializing from context passing Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-23 20:34 +0100
      Re: Initializing from context passing Lew <noone@lewscanon.com> - 2011-04-23 18:35 -0400
        Re: Initializing from context passing Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-24 01:17 +0100
          Re: Initializing from context passing Lew <noone@lewscanon.com> - 2011-04-23 20:32 -0400

csiph-web