List types

Hi ,
i'm having a little problem with list types (As the title may suggest :)) ,
ihave class X which implements Interface Y , now i have a function that recieves a list of type X List<X> listX and another fucntion that recieves a List<Y> , i can't seem to pass the List<X> to the function which expectes a list of type Y
?? that's quite bizzare i think , unless i do something like that
List<Y> yyy ;
for (Y y : List<X>)
yyy.add(y)
and then i can pass yyy to the function , what's the logic in that ? i'm loosing the whole reason i use intefaces , any ideas how to solve this in a cleaner way ?

I think that this is a limitation of Java generics. For backwards compatability, java generics aren't covariant. So if
List<Integer> x = new ArrayList<Integer();x cannot be used in place of List<Number>. For more details, please see this reference:
http://www.ibm.com/developerworks/java/library/j-jtp01255.html
I don't know of any easy work-around.

Similar Messages

  • How to fin the Workcenter after getting Task list type

    Hi all ,
           I got the fields PLNTY(Task List Type ) , PLNNR(Key for Task List Group) , ZAEHL(Internal counter ) and VORNR (Operation/Activity Number)   from PLPO table .
    I need to get the work centers names . I saw the work centers are in CRHD table .
    May i know how to get the name of the work centers after getting the task list type details .
    I  found the routing details of a give finished/semi finished material .
    my next step is to find the work centers.
    Any suggetions from you are appreciated .
    Regards
    Raj

    Hi Jan,
    Yes, sa38 makes it possible indeed to execute in background into immediate mode a job but
    the user have to know the name of the program to be carried out ...
    The user knows only the name of these transactions trade. For example, IW38.
    In the menu of this transaction, SAP gives the possibility to execute in background :
    Program --> Execute in Background --> display of Start Time screen for the type of start condition :
    Immediate, Date/Time, After job, After event, or At operation mode).
    It is at this time there that we want that the user can only choose the "immediate" mode.
    We must thus prohibit the other choices (Date/Time, After job, After event, or At operation mode) ... and
    and we don't know how to restrict these other options in this screen "Start Time screen for the type of start condition".
    Thank you.
    By.

  • Sales Area wise Invoice list type assignment

    Hi;
    I got a requirement where customer needs the Invoice list assignment to billing documents sales area wise. Like in one particular sales area one invoice list type to a billing doc but the same billing doc needs other invoice list type in other sales area.
    Pl. let me know how can we assign the different invoice lists sales area wise.
    Expecting your valuable feedback.
    Regards;
    Avinash Patil

    Hi;
    Create a new zee table & maintain the entries of sales area, customer, billing document type etc.
    Use user exit USEREXIT_FILL_VBRK_VBRP to fetch & overwrite the values in FKART_RL ( VBRK).
    This solve your problem,
    Regards

  • Why is the TOC in portrait only orientation still not a list type

    I'm trying to author an ebook in the iBooks Author and using the portrait only template (Classic Text). The TOC is still showing a page per TOC item. Why can't it just show the default list type view of the TOC?
    I did not want this, why do I need 15 pages just to show the chapters and their title, why cannot they be just like a TOC in a regular book?
    Am I doing something wrong here... please help.
    Best Regards,
    Virk

    Hello shal1y,
    Thanks for the question. The following article may provide relevant information to your question:
    iBooks Author: Customize the table of contents
    http://support.apple.com/kb/PH2752
    Thanks,
    Matt M.

  • Is it possible to use List Type in XML schema within the SOA Rule author?

    Is it possible to use List Type in XML schema within the SOA Suite Rule author? The reason is that with the following XSD, Rule author generates XML facts of type "List" for the element "ResultSet". Basically I want to check the Input facts (Input1, Input2, Input3) for some conditions and then assign action to the element Resultset of type List (array). The output Resultset can contain multiple values based on the input facts. My problem is that I am unable to see the ResultSet in the "Assign" action type of the action block. Is it possible to use the Resultset of type List with the Rule author or is there any limitation on the rule author and any workaround for this?
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.oracle.com/ns/TestMultipleOutputs"
    elementFormDefault="qualified">
    <element name="TestMultipleOutputs">
    <complexType>
    <sequence minOccurs="0">
    <element name="Input1" type="string" minOccurs="0"/>
    <element name="Input2" type="string" minOccurs="0"/>
    <element name="Input3" type="string" minOccurs="0"/>
    <element name="ResultSet" type="string" minOccurs="0"
    maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    --Thanks a lot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Richard,
    I have slightly modified the xml schema you suggested and was able to import into the rule author. the following is the modified XSD. Rule Author created a List type for the "ResultSet" . I still don't see "Resultset" in the assign action, so I tried creating RL function in order to assign the output to the "Resultset", but was unsuccessful so far. can you please let me know how to populate the resultset with the output values? Thanks a lot.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema attributeFormDefault="unqualified"
    xmlns:ns1="http://www.oracle.com/ns/TestComplexOutputs"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.oracle.com/ns/TestComplexOutputs"
    xmlns:tns="http://www.oracle.com/ns/TestComplexOutputs"
    elementFormDefault="qualified">
    <xsd:element name="TestComplexOutputs">
    <xsd:complexType>
    <xsd:sequence minOccurs="0">
    <xsd:element name="Input1" type="xsd:string" minOccurs="0"/>
    <xsd:element name="Input2" type="xsd:string" minOccurs="0"/>
    <xsd:element name="Input3" type="xsd:string" minOccurs="0"/>
    <xsd:element name="ResultSet" type="tns:ResultSetType" minOccurs="0"
    maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="ResultSetType">
    <xsd:sequence>
    <xsd:element name="ResultSet" type="tns:ResultSetStructure" minOccurs="1"
    maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ResultSetStructure">
    <xsd:sequence>
    <xsd:element name="ErrorReason">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string"/>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

  • "List" type for attribute in Workflow

    Hi, I need to set the value of an attribute in List type whose length is determined in the run-time, but it's not a built-in type in workflow. Any solution on this?
    (Oracle 9i/workflow 2.6)
    Thanks
    Fiona

    I don't think that there is any difference. If you set a table type as container element data type, the multiline checbox is checked automatically (and you cannot change that). So eventually the table type container element is the same as a structure type container element with multiline checkbox checked.
    EDIT: Or does it behave differently for you?
    Regards,
    Karri

  • To differenciate string and list types in Xpress language

    Hi! I have a question in Xpress language:
    I'd like to know how to differentiate between string and list types. For example, *<s>orange</s>* and *<list><s>orange<s></list>*
    How does it know Xpress language what is it string or list?
    Thanks a lot.
    P.D. Excuse for the strike text, I don't know why it shows striked test.

    Try this:
    <instanceof name='List'>
    <ref>orange</ref>
    </instanceof>
    Edited by: Mindie on Mar 28, 2008 8:12 AM
    Edited by: Mindie on Mar 28, 2008 8:13 AM
    Edited by: Mindie on Mar 28, 2008 8:13 AM
    Edited by: Mindie on Mar 28, 2008 8:13 AM

  • Define own no ranges for Boms & Routings(task list type)

    hello all,
    I need to confirm if we can have seperate no ranges for materials Boms or routings on the same client?
    I think we can assign a new Bom no range but can't have different no ranges for different material boms on the same system. Moreover, using CS90 we can only define the internal no range for material boms?
    For task list we can define external no ranges but this gets assigned to the task list types. Is it possible to define our own task list type? I don't think so, but not a 100% sure.
    Pls can somebody confirm this for me.
    Many thanks.

    hi
    what you mentioned is correct there is no option of creating the task list types and also of youcan have external number ranges for BOMs check t-code SNUM with object STUE.
    -ashok

  • Price list type & Price Group

    Hi,
    Can any one please tell me
    what is Price list type & Price group?
    In which tables these information will be stored for sales order?
    Regards,
    Bhaskar..

    Hi Goutham,
    Could you please tell me which fields in VBAK table refers the Price list & Price Group?
    I checked & couldn't find the descrition releated to these fields?
    Thank you very much.
    Regards,
    Bhaskar.

  • The default value as "None" for the report filter which is Value List type?

    Hello,
    I want to know is it possible to make the default value as "None" for the report filter which is Value List data type?
    For example:The Project Classification Value List value type which have many value like "Supplier Rationalization" "Category Sourcing" "Contract Regegotiation" etc, and the value "Supplier Rationalization" is in the frist positon in the value list. When i use "Project Classification " as a report filter, the value "Supplier Rationalization" displayed as default value. And in the value list box in report filter of Project Classification , there is a value "None" which should be added automatically by system. So i manually filled the default value with "None" in Filter Prompt screen, but it does not work. After i display the report ,the Project Classification filter still use the ""Supplier Rationalization" as the default value.
    My current ESO version is 5.1. I tried other ESO version like 5.15, if i manaully give a default value "None" in Filter Prompt screen for filter Project Classification, then the default value is "None". It works well.
    Does anybody know if it's possible to do the same thing in ESO 5.1?
    Thanks & Regards,
    David
    Edited by: David Gao on Aug 11, 2010 4:06 AM

    Hi David -
    This is possible, but the technique is not too obvious...
    To make "None" be the default choice for a query definition filter parameter of type value list type, you need to set the default value of the filter parameter to the following:
    <internal id of value list type>:616:NULL
    For example, I believe you will see that the internal id of the Project Classification value list type is 51, so the default value of the filter parameter would be:
    51:616:NULL
    I hope this helps.
    Regards,
    Rob

  • Extra overhead with Collection and List types

    The documentation says about Collection and List types :
    "There is extra overhead for Kodo to maintain collections where each
    element is not guaranteed to be unique."
    Why is it so ?
    Thanks in advance.
    Regards.

    We can make some optimizations when we know each element is unique.

  • How to create static list type view state?

    Hi!
    i want to create a static List type view state in asp.net c# for below type of list?
    static List<KeyValuePair<string, int>> istrStartDate = new List<KeyValuePair<string, int>>();

    Please  post it in the dedicated ASP.Net Forum
    http://forums.asp.net  for more efficient responses.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Task List Type

    I am creating maint plan (IP42) and during assigning Task List, it is asking for "Task List Type" as input.
    I have searched in header screen of task list but could not find it. Can anyone say from where I can get this.
    Regards.
    Manoj

    HI
    at the time of creating plan, youhave to assign the task list,
    so when you search from plan you need to tick on check box of FL tasklist (if plan belongs to FL level),tick equipment task list if you want to assign the task list created against the equipment(IA01)
    if you want to assign the general maintenance task lsit tick on the check box of general maintenace task list.
    if you want to know the task list type
    A -general task list
    E-Equipment Task List
    T-Task List for Funct. Location
    -ashok

  • How do I enable the button to use the tree list in excel? (Enable the list type: Tree enabled in Office 2013 - VSTF 2013)

    Hi, I was looking to see if anyone knows how I can troubleshoot my connection problem with TFS view in excel. I'm trying to  produce a tree view in Office 2013 as described in the following KB -
    https://msdn.microsoft.com/en-us/library/dd286627.aspx
    I have followed the instructions on the KB all the way up to : 'Add backlog items and tasks and their parent-child links using a tree list' and at this point I can't seem to get it to work as the button is greyed out.
    Note that I have completed steps 1-6 for the previous procedure... all 6 steps work just fine. However on step 2 of the second procedure - the instructions state I should be able to 'Add Tree Level' - However the button is greyed out.
    Anyone know what I need to do to enable the button to use the tree list in excel? 
    Frank

    Frank,
    I believe your issue is that you have opened a Flat query and are trying to add tree levels. A flat query is just that and you cannot change the query type from Excel.
    The second process is managing a backlog (which is a tree). TFS web access has a link on the backlog view to create a query. That query will be a "tree of work items" query that returns the items in the backlog including their parent-child relationships.
    This type of query supports the Add Tree Level and Add Child functionality as does a new Input List (not bound to an existing query).
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Bulleted list, type breaking to next line

    I'm working in ID CS3. I set up a nested style sheet for a bulleted list. However, the type is breaking too soon--there is still space on the line for more text, but it is breaking it. When I backspace the type trying to bring it up, it will do it, but when I add a word space back in, it jumps down to the next line.
    It is not doing this with other styles I have set up. I tried changing the style to Adobe Single-line composer, but that didn't help.
    (p.s. I'm a long-time Quark user who has been migrating over to InDesign)

    Welcome to the paragraph composer. InDesign's text composition engine is
    far more advanced than XPress'. It looks at the entire paragraph.
    You can turn it off, but I don't advise it. Instead, if you need words
    to stay together, use a no break attribute (create a character style for
    it).
    You say it's off, but there's no way it would be acting that way if it
    were. Look in the paragraph panel and the paragraph styles.
    Bob

Maybe you are looking for

  • Windows 8.1 photosmart 6520 printer app won't open

    I have an AsusQ301L running Windows 8.1, with Kaspersky Internet Security 2014 running. Just bought a Photosmart 6520 and installed driver software from HP website.  The printer will print form my applications, but the HP Application software will no

  • LIVE workspace is missing... or is it? [9.2.0.6.0]

    Dear all Under Workspace|Workspaces in Enterprise Manager I expect to see "LIVE". This is the case for all my databases except one, which I'll call "AAPSD". Under AAPSD there are no workspaces listed in Enterprise Manager. However, if I connect to SQ

  • Drag and drop files for burn to DVD takes FOREVER

    When I drag and drop files onto the blank DVD icon, the ghosts of said files just hang there for the longest time, and I get a spinny beach ball. Many, many minutes later things finally return to normal and I can proceed with burning the DVD. It's ju

  • Event ID 64 CertificateServicesClient-AutoEnrollment about to expire

    I noticed this warning appearing on my clients server (DC).  I decided to open Certificates console (Local Computer), and under Personal/Certificate there is a certificate issued to mydomaincontroller.mydomain.local which was issues by the CA on my S

  • Using Tuxedo Mainframe adapter for SNA with OSB

    Hi, Can we use the Oracle Tuxedo mainframe adapter for SNA with the OSB? If yes then how?