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


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

Re: Initializing from context passing

From Dirk Bruere at NeoPax <dirk.bruere@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Initializing from context passing
Date 2011-04-24 01:17 +0100
Organization Dirk Bruere at Neopax
Message-ID <91h8hcFlmbU1@mid.individual.net> (permalink)
References <91ga4tF38vU1@mid.individual.net> <iouv3r$5ls$1@dont-email.me> <91gnv8F6ooU1@mid.individual.net> <iovk75$jdp$3@news.albasani.net>

Show all headers | View raw


On 23/04/2011 23:35, Lew wrote:
> 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?
>

True, my mistake.
But having said that, all the examples I have seen use ArrayList and not 
List

-- 
Dirk

http://www.neopax.com/technomage/ - My new book - Magick and Technology

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