List List ? extends T cannot be assigned to List List T , why?

Can someone help we with why this fails to compile?
     List<List<? extends DrawableTile>> tiles;
     public TilePanel() {
          // This fails to compile:
          tiles = loadTestTiles();
     private static List<List<DrawableTile>> loadTestTiles() {
     }I know that this (below) works, but why not for the nested generics case?
List<? extends DrawableTile> tileList = new ArrayList<DrawableTile>();

List<DrawableTile> is a different type than List<? extends DrawableTile>. List of one type parameter cannot be assigned to List of another type parameter.
Suppose you try to add a List<SubTypeOfDrawableTile> to tiles; it would work. But then suppose that the reference returned by loadTestTiles() was stored somewhere else as a List<List<DrawableTile>>. Then you would expect to be able to retrieve List<DrawableTile> out of it. Well now suppose you try to add a DrawableTile to that sublist. See the problem?
You probably meant to do this
List<? extends List<? extends DrawableTile>> tiles;Edited by: spoon_ on Dec 10, 2007 5:02 PM

Similar Messages

  • LR posted to Facebook is no longer working for me.  Says album name cannot be assigned.

    Before the last update to LR I could post to Facebook via LR with no issues.
    After the update I get the message something to the effect of Album name cannot be assigned.  I have tried with and without spaces in the name and same outcome. 
    Any suggestions?
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Lightroom version: 5.5 [968504]
    Operating system: Windows 8.1 Business Edition
    Version: 6.3 [9600]
    Application architecture: x64
    System architecture: x64
    Logical processor count: 8
    Processor speed: 3.4 GHz
    Built-in memory: 32639.4 MB
    Real memory available to Lightroom: 32639.4 MB
    Real memory used by Lightroom: 440.2 MB (1.3%)
    Virtual memory used by Lightroom: 393.8 MB
    Memory cache size: 489.1 MB
    Maximum thread count used by Camera Raw: 4
    System DPI setting: 96 DPI
    Desktop composition enabled: Yes
    Displays: 1) 1920x1080
    Application folder: C:\Program Files\Adobe\Adobe Photoshop Lightroom 5.5
    Library Path: E:\Users\Jim\Pictures\Lightroom\Lightroom 5 Catalog.lrcat
    Settings Folder: C:\Users\Jim\AppData\Roaming\Adobe\Lightroom
    Installed Plugins:
    1) Behance
    2) Canon Tether Plugin
    3) Export to Photomatix Pro
    4) Facebook
    5) Flickr
    6) Leica Tether Plugin
    7) Nikon Tether Plugin
    Config.lua flags: None
    Adapter #1: Vendor : 8086
      Device : 412
      Subsystem : 85341043
      Revision : 6
      Video Memory : 32
    Adapter #2: Vendor : 1414
      Device : 8c
      Subsystem : 0
      Revision : 0
      Video Memory : 0
    AudioDeviceIOBlockSize: 1024
    AudioDeviceName: Speakers (Realtek High Definition Audio)
    AudioDeviceNumberOfChannels: 2
    AudioDeviceSampleRate: 44100
    Build: Uninitialized
    CardID: 1042
    Direct2DEnabled: false
    GPUDevice: D3D
    MaxTexture2DSize: 8192
    OGLEnabled: true
    Renderer: Intel(R) HD Graphics 4600
    ShaderModel: 11.1
    Vendor: Intel
    VendorID: 32902
    Version: 8086:0412:85341043:0006

    Before the last update to LR I could post to Facebook via LR with no issues.
    After the update I get the message something to the effect of Album name cannot be assigned.  I have tried with and without spaces in the name and same outcome. 
    Any suggestions?
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Lightroom version: 5.5 [968504]
    Operating system: Windows 8.1 Business Edition
    Version: 6.3 [9600]
    Application architecture: x64
    System architecture: x64
    Logical processor count: 8
    Processor speed: 3.4 GHz
    Built-in memory: 32639.4 MB
    Real memory available to Lightroom: 32639.4 MB
    Real memory used by Lightroom: 440.2 MB (1.3%)
    Virtual memory used by Lightroom: 393.8 MB
    Memory cache size: 489.1 MB
    Maximum thread count used by Camera Raw: 4
    System DPI setting: 96 DPI
    Desktop composition enabled: Yes
    Displays: 1) 1920x1080
    Application folder: C:\Program Files\Adobe\Adobe Photoshop Lightroom 5.5
    Library Path: E:\Users\Jim\Pictures\Lightroom\Lightroom 5 Catalog.lrcat
    Settings Folder: C:\Users\Jim\AppData\Roaming\Adobe\Lightroom
    Installed Plugins:
    1) Behance
    2) Canon Tether Plugin
    3) Export to Photomatix Pro
    4) Facebook
    5) Flickr
    6) Leica Tether Plugin
    7) Nikon Tether Plugin
    Config.lua flags: None
    Adapter #1: Vendor : 8086
      Device : 412
      Subsystem : 85341043
      Revision : 6
      Video Memory : 32
    Adapter #2: Vendor : 1414
      Device : 8c
      Subsystem : 0
      Revision : 0
      Video Memory : 0
    AudioDeviceIOBlockSize: 1024
    AudioDeviceName: Speakers (Realtek High Definition Audio)
    AudioDeviceNumberOfChannels: 2
    AudioDeviceSampleRate: 44100
    Build: Uninitialized
    CardID: 1042
    Direct2DEnabled: false
    GPUDevice: D3D
    MaxTexture2DSize: 8192
    OGLEnabled: true
    Renderer: Intel(R) HD Graphics 4600
    ShaderModel: 11.1
    Vendor: Intel
    VendorID: 32902
    Version: 8086:0412:85341043:0006

  • Since installing iOS 7 messages randomly disappear from the message list.  When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, send message and there are the messages.  'Fred' messages then re-appear in Message list. Why

    Since installing iOS 7 messages randomly disappear from the messages list.  When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, go to send message and there are the messages.  'Fred' messages then re-appear in Message list. Why?  How to stop messages disappearing from message list?  Thoughts?

    Since installing iOS 7 messages randomly disappear from the messages list.  When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, go to send message and there are the messages.  'Fred' messages then re-appear in Message list. Why?  How to stop messages disappearing from message list?  Thoughts?

  • Handling unit 1000001227 contains an item that cannot be assigned

    THE HANDLING UNITS ARE CREATED WITH THE BATCH MANAGED MATERIAL HU02.
    AT THE TIME OF CREATING DELIVERY,WHEN I GO TO SELECT THE HANDLING UNITS IN EDIT>PACK THE SYSTEM GIVES ME FOLLOWING WARNING,
    Items subject to batch handling w/o batch assignment could not be packed
    AND AFTER ENTERING THE SYSTEM TAKES ME TO THAT PACKING SCREEN AND WHEN I SELECT MY HANDLING UNIT THE SYSTEM GIVES ME THE FOLLOWING MESSAGE AND DOESN'T SELECT THE HANDLING UNIT,
    Handling unit 1000001227 contains an item that cannot be assigned
    ALTHOUGH THE SYSTEM SELECT THE HANDLING ONLY WHEN I MENTION THE ALL BATCHES,QUANTITY AND WAREHOUSE OF THE ITEM IN BATCH SPLIT.
    ANY ANYONE TELL ME THAT HOW CAN I SELECT THE HANDLING UNITS WITH OUT MENTIONING ITS BATCHES IN THE BATCH SPLIT.
    REGARDS:VIJAY KUMAR

    Hi Vijay,
    Based on the below error Items subject to batch handling w/o batch assignment could not be packed.
    I think while creating the delivery check whether the system allocated the correct batch or not. If not created the batch then click on Batch split and Batch determination.
    Then from the menu Batch determination -> W/o classification. Then system will show the all batches. Then select the coorect batch and copy the Qty.
    Then try to do packing edit - > pack.
    I think it will work fine.
    Regards,
    SK

  • When I change size of icons or icon vs list display, why does it affect the whole computer?

    When I change size of icons, or icon vs list display, why does it affect the whole computer? In some folders I want to see a list and others I want to see an icon and I don't need a large icon in all folders. I used to be able to set each folder separately in the old OS. How do I fix this?

    I can hilight an item, go to the finder/file/getinfo but there is no box next to icon view.
    I can go to view/options and adjust the icon size etc, but this applies to every folder in the whole computer. I need varied options in different folders, i.e., I want to view images as icons and text as text. I have to change it every time I open a folder. I used to be able to set it per folder in the old OS.

  • In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    I create a new index on column2, (INDEX_N3)
    and change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    This time INDEX_N3 will be used.
    but change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    and T1.COLUMN_004 = '1000'
    The explain plan will show full scan.
    Why?
    Thanks.

  • What is the parameter list and why does it keep on coming up?

    What is the parameter list and why does it keep on coming up when I try to finalize the video or share it?

    Hi
    I try to finalize the video or share it?
    How do You do that and to what do You Share it ?
    Yours Bengt W

  • What is an Invoice list? Why is it used?

    Hi All,
    Can any one tell me what is an Invoice list? Why is it used?
    Thank you for your help.
    Regards,
    Shanu

    Invoice Lists makes it possible to send a list which contains multiple billing documents like invoices, credit memos and debit memos, to a Payer at specific time or on specific days.  This can be generated in background processing.
    There are two types of invoice lists in the standard:-
    -  One for Invoices and debit memos and
    -  One for Credit memos
    thanks
    G. Lakshmipathi

  • DataSource  cannot be assigned to InfoSource

    Hi Experts,
    I am in 3.x, loading data from DataSource to ODS. When I am trying to create transfer rules I get error message 'DataSource  cannot be assigned to InfoSource'. what is the reason and what should I do?
    Thak you in advance,
    Olga

    Hi Olga
    check this link
    http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YV-RSAR019
    What is the type of your DataSource?
    Regards
    Anindya

  • SNOTE: SAP object cannot be assigned to package Z***t

    Hello Experts,        
             we are try to implement SAP Note 1561545
    we are received the following message:-
    SAP object FUGR ADWP_SERVICES cannot be assigned to package Z001 as the following:-
    Kindly aid us, How we can fix this issue?
    Thanks
    Said Shepl

    Hi Gaurav,
        i didn't perform any manual corrections before with SAP Note 1531669
    Also i tried to save it under AFX_ARCHIVINGENGINE which created a request on SAP and received the following
    and still not implemented.
    Said Shepl

  • I have just installed CS6 Master collection but indesign isn't working, when opening I get the message "Cannot load Assignment UI.InDesign because it requires Username. Please install the Username plugin and restart InDesign." not sure what to do next?

    I have successfully installed the CS6 master collection and all the programs seem to be working apart from InDesign. When opening it I get the message "Cannot load Assignment UI.InDesign because it requires Username. Please install the Username plugin and restart InDesign.". I have no idea what to do next?

    Many people use a font manager to organize a large collection of fonts, and sometimes these cause problems in ID. You might not realize that the font manager has installed a plugin in ID, but I think you would know if you added any other program extensions to help you work.
    Can you show us a new crash report since the 8.0.2 update?
    What happens if you start the Mac with the Shift key held down to prevent extensions from loading? What happens if you go to the System settings and create a new user, then restart the Mac and log in with the new user?

  • I have added more songs to my library. Half of the library has selected ticks but when I click on any of the others to select them the whole song disappears from the list. Why and what can I do to fix?

    I have added more songs to my library. Half of the library has selected ticks but when I click on any of the others to select them, the whole song disappears from the list. Why and what can I do to fix?

    Hey Paul,
    If I understand correctly, it sounds like iTunes is not grouping the songs from a particular CD together. The cause could be something as minor as a misspelling or slight variations. For more information, see the following resource:
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Thanks,
    Matt M.

  • I recently lost my iPhone and tried to use "Find my iPhone" but did not see my phone listed. Why is that?

    I recently lost my iPhone and tried to use "Find my iPhone" but did not see my phone listed. Why is that?

    If it is not turned on and connected to the Internet it will not show up.  If has been restored to factory condition it will not show up.

  • Just loaded cs6 extended.  cannot get bridge to open

    just loaded cs6 extended.  cannot get bridge to open.

    conswan, I would request the MOD's to move this to the bridge forum.
    In the mean time you can try opening Bridge while pressing
    Alt + Ctrl + Shift Key on Windows
    OR
    Cmd + Shift + Ctrl on MAC
    That will reset the preferences for Bridge.
    We would also suggest you to have a look at this thread.
    http://forums.adobe.com/message/5123747#5123747
    - Garima

  • HT1391 I purchase a song, but it doesn't appear on my song list. Why?

    I downloaded a song and was charged for it. It downloaded, yet it doesn't appear on my regular song list. I can only see it in the purchase list. Why is this? Why can't I see my song on my regular song list? How can I fix this. Please help, I really don't apprieciate this.
    Thank you.

    jgitt1214 wrote:
    I downloaded a song and was charged for it. It downloaded, yet it doesn't appear on my regular song list. I can only see it in the purchase list. Why is this? Why can't I see my song on my regular song list? How can I fix this. Please help, I really don't apprieciate this.
    Thank you.
    Jgitt1214,
    It is a long-standing intermittent display bug in iTunes, that has been reported on both the Windows and Mac versions for several years.
    When it occurs, the tracks really are in your library, but do not display in Music view.  Usually they do show up in Recently Added and/or Purchased.  And of course, the files really are in the folders where they are supposed to be.  Does that match what you are seeing?
    Home remedies that people have reported can fix it are to restart your machine, or to download a song from the Store (e.g. a free single).

Maybe you are looking for

  • MacBook won't recognize external disk for Time Machine

    Help! My husband now has my old MacBook (white, 2008). It's running the latest version of Snow Leopard. He also has his old Mac Mini (PowerPC, not Intel). Its optical drive is failing, so I decided he could use it as a TM backup disk. Last night, I c

  • Image not scaling when loading from client in web forms

    I'm using formsserver 6i patchset 11 I've created a java class wich extends oracle.forms.ui.VImage I'm loading a jpg file from the client into a bean area with this implementation class. However the image doesn't fit into the bean area(for 1/3 second

  • Not able to connect to java server

    Hi, I am not able to connect to the java server (for example server startpage)  but i can open this page from the same system in which it is installed and not from other system. Could anyone help me out? Regards, Pradeep KS

  • Tablespace move in partitioned tables

    I moved partitioned tables in new tablespace dedicated for 2006 data, do i need to move table relaed indexes in new tablespace also.?

  • How to create a custom dialogbox from menuitem

    Hi everyone, I'm new to java swings and i'm creating a Menu application with a menu. I'm trying to open a dialog box with the menuitem. I tried JOptionPane and i got it and now i'm trying to create a customized dialog with JPanel. I tried a lot ...bu