How to know the class type of an element in a List?

I got a list of something. Is there a method that is used to return what type of an element is?
Thanks.

Peter__Lawrey wrote:
Not sure how generics will help. A list with a generic has no more methods than a list without generics.
There is no method like
List<T> list;
Class<T> elementClass = list.getElementClass();
I was thinking of:
List mysteryList;
//versus
List<Meatball> meatballs;

Similar Messages

  • How to know the output type for particular tcode

    Hi
    how to know the output type for the VL10D & VAL TCODES.
    Can anybody help me out.
    Thanks and Regards
    Krishnarao

    Hi Krishna,
    GO to NACE and select your application and click on output types and in the next screen select your output type and and dbl click on Processing routines.
    Here you will come to know about which driver program is used for which smartform or Script.
    and for Program details you can refer table: REPOSRC
    Regards,
    Sachin

  • How to find the Class Type of a Class ?

    Hi,
    Can anyone tell how can I find a Class Type of a Class?
    e.g. I know the Class name as "Z_ABC" but do not know its Class Type, therefore, not able to display it in CL01.
    Regards,
    Lucky

    Hi,
    Just by entering the Class name in CL02 does not display the data because system asks to enter the Class Type as well.
    Rammohan - Thanks for thissolution however, when I executed after entering the Class Name, table displyed no entries found..... message but this class is being used in the PO Release Strategy. May be the data is being saved in some other table. Is there any other way to find this?
    Regards.

  • How to know the class method behind an enterprise service

    Hi,
    SAP has provided enterprise services for Room booking in Real Estate module. They are even shipping the complete application for a nominal price. But the standard version is not suitable for our client requirement so they want to develop this application inhouse.
    Now my question is:  I know the enterprise services used in this application. How to know the implementing methods behind these enterprise services ?
    If possible suggest which approach will be a better option for the inhouse development.
    1. Webdynpro ABAP and use directly methods behind the enterprise services.
    2. Webdynpro ABAP and create client proxy class for the enterprise services.
    3. Webdynpro JAVA and use the enterprise services.
    4. Using visual composer modelling the application.
    Please suggest the best alternative.
    Best Regards,
    Aleem Mohiuddin.

    Hi
    They are even shipping the complete application for a nominal price. But the standard version is not suitable for our client requirement so they want to develop this application inhouse.
    I assume you are talking about xApps.
    How to know the implementing methods behind these enterprise services ?
    In sproxy transaction you can search service and then you can see class and method implemented behind that particular service.
    1. Webdynpro ABAP and use directly methods behind the enterprise services.
    In my opinion not recommended to bypass ES and use method behind it.
    2. Webdynpro ABAP and create client proxy class for the enterprise services.
    Not sure why you want to create proxy of ES.
    3. Webdynpro JAVA and use the enterprise services.
    4. Using visual composer modelling the application.
    You can use either Webdynpro (ABAP or Java) or VC to model your application which consume ES in backend. Both options are good, you can chose Java or ABAP flavor of dynpro based on skill available in team. VC is very effective in rapid modelling and can be used in protyping or in development of complete application.
    Regards,
    Gourav

  • How to know the platform type

    Hi
    I would like to know the platform type am using in the frontend..am trying to use the static method
    cl_gui_frontend_services=>GET_PLATFORM...it returns '5'..am not able to interprete the importing parameter
    Please suggest
    Regards
    Panda

    PLATFORM_UNKNOWN     -1
    PLATFORM_WINDOWS95     1
    PLATFORM_WINDOWS98     2
    PLATFORM_NT351          3
    PLATFORM_NT40          4
    PLATFORM_NT50          5
    PLATFORM_MAC          6
    PLATFORM_OS2          7
    PLATFORM_LINUX          8
    PLATFORM_HPUX          9
    PLATFORM_TRU64          10
    PLATFORM_AIX          11
    PLATFORM_SOLARIS     12
    Regards,
    Rich Heilman

  • How to know the proxy type??

    How can I know the type of proxy I am connecting to?? like whether its SOCKS, or HTTP etc...which all are enabled....
    thanks in advance....

    I get an error java.net.SocketException: Malformed reply from SOCKS server while connecting through the proxy.That indicates that there isn't a SOCKS proxy at the indicated host:port.
    Is there any other chances of errors than socks not being enabled?You could have got the host or port wrong.
    and how can I know if it is really enabledThe connection will work ...

  • How to know the Control type using event param???

    Hi,
    I wrote a function on MOUSE OVER EVENT. I called this
    function from a LIST and DATAGRID using addEventListener.
    Now i got a requirement like on event fire.. i wanna alert
    the control type i.e., whether the action fire from LIST or
    DATAGRID. I can create two different function for both LIST and
    DATAGRID. But requirement is like cannot reapeat the code.. code
    minimization.
    Is there any property to know the type of control(Like its
    LIST or DATAGRID) using event parameter??
    Thanks & Regards
    PRatap

    You can try using flash.utils.describeType or
    flash.utils.getQualifiedClassName on event.target property and
    figure out the control type.

  • How to know the connection type?

    Hi guys,
    I need to know what's the connection type (3G or WIFI) of a mobile device (Android and iOS) is enabled. Is it possible? I'm using Flex 4.5.1.
    Could someone help me?
    Thanks,
    Luis

    Hi guys,
    I found the answer:
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    var interfaces:Vector.<NetworkInterface> = NetworkInfo.networkInfo.findInterfaces();
    for(var i:uint = 0; i < interfaces.length; i++) {
                        if(interfaces[i].name.toLowerCase() == "wifi" && interfaces[i].active) {
                            lbl.text = "WiFi connection enabled";
                             break;
                        } else if(interfaces[i].name.toLowerCase() == "mobile" && interfaces[i].active) {
                            lbl.text = "Mobile data connection enabled";
                            break;
    http://cookbooks.adobe.com/post_Detecting_the_network_connection_type_with_Flex_4_-18791.h tml

  • How to know the class name in .ser file?

    Hi,
    I have a .ser file, could any expert help me to find out all the classes in the .ser file? Thanks!

    If you have written them as Object, then you can just read them one by one with an ObjectInputStream and when you have the object, you can print out the class name:
    Object o = in.readObject();
    if (o != null)
      System.out.println(o.getClass().getName());
    else
      System.out.println(null);

  • How to know the program type?

    Hi,
    I want to know what type of execution method a certain concurrent program has, ( e.g if it is SQL*PLUS, REPORT, SPAWN, PL/SQL etc)
    I run the following sql at apps/apps
    1* select distinct execution_method_code from fnd_concurrent_programs
    SQL> /
    E
    R
    H
    P
    I
    K
    Q
    M
    A
    J
    X
    B
    S
    L
    E
    Where do I get the corresponding meaning of this code please.
    How do I query at the form level all the PROGRAM name with execution type SQL*PLUS?
    Thanks a lot

    Hi,
    Where do I get the corresponding meaning of this code please.Try the queries in the following links:
    PSP PL/SQL API for Customizations Tracking
    http://dbaanswers.blogspot.com/2007/11/psp-plsql-api-for-customizations.html
    Query 9: SQL to view all types of request Application wise
    http://knoworacle.wordpress.com/2009/01/12/oracle-application-top-useful-sql-queries/
    Display Module Wise Reports
    http://oracle-applications-rama.blogspot.com/2007/05/display-module-wise-reports.html
    Or, refer to eTRM and see if it is documented there.
    eTRM
    http://etrm.oracle.com
    How do I query at the form level all the PROGRAM name with execution type SQL*PLUS?From System Administrator responsibility, navigate to Concurrent > Program > Executable, Press F11, select "SQL*Plus", Ctrl + F11
    Regards,
    Hussein

  • How to know the var Type

    Hallo. I need a help. I wish to know if the user input is a correct uint type or int type or Number type.. Is there any way to know it?
    Thx
    Max

    Hi Max,
    You can use the operator "is":
    var myInt:Number;
    trace(myInt is Number); // true
    trace(myInt is int); // false
    trace(myInt is uint); // false
    Regards,
    Pablo Souza

  • How to know the data type of a variable?

    Hi,
       Can anyone tell me which function can return the name data type of a variable?
        Thanks!
    Message was edited by: Long Zheng

    Hi long,
    1. I don't know whether this will serve your purpose.
    2.
    REPORT abc.
    DATA : components     LIKE     rstrucinfo OCCURS 0 WITH HEADER LINE.
    DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
    CALL FUNCTION 'GET_COMPONENT_LIST'
      EXPORTING
        program    = sy-repid
        fieldname  = 'T001'
      TABLES
        components = components.
    LOOP AT components.
      WRITE :/ components-compname , components-type.
    ENDLOOP.
    regards,
    amit m.

  • How to know the type of a variable??

    how to know the type of a variable??
    For example, give you a variable s, how to determine if it is
    a primitive type, of an object?? If this is primitive type,
    any ways to determine if it is integer, boolean, double, ...??

    I am currently working on a project where this happens. I have a main type of object that all of my other types extend. While working on the objects in a method, any type of other object could be coming through. To test I try to cast the object and catch class cast exceptions. This only works because I know the different type that will be coming through....
    public void testObject(classX object){
      try{
        classY object = (classY)object;
      }catch(ClassCastException CC){
        try{
          classZ object = (classZ)object;
        }catch(ClassCastException CCC){
          /// the object fails to be cast as the types I tested for.
    }

  • How to know the function module for a message type

    hi sd gurus,
    how can i know the function modules used ( based  on message type can i know it?) in inbound idoc processing.
    can anyone  let me know where can i find it out and the related transaction codes
    Thanks&Regards
    Srini

    You can find out the Functionmodule if you know the message type.
    Go to WE20, find the message type for hte relevant partner type by clicking the partner type and then clicking one partner int hat partner type.
    Now on the right hand side, you will get a screen. Based on whether it is your outbound IDOC or ibound, click the relevant parameters, select the message type and double click.
    In the new screen open the Message control tab and fidn out the process code of the IDOC.
    Now go to WE41 if ur IDOC is outbound or WE42 for inbound IDOC.
    Search for the process code which is assigned to the message type in WE20.
    Double click the process code, you will see the relevant function module in the 3rd field.
    Hope thsi helps you
    Pls reward if it helps.

  • How to know the printprogram and output type for perticular standard script

    how to know the print program and output type for perticular standard script and wt the proceure we will fallow to modifie the standard script..if possible u have any sample code plz share with me.....

    Hi Phani,
    To know the print program and output type for a standard script we have a table called TNAPR. So just you go to SE11 and provide the table name as TNAPR and choose display option.Then go with display entries option and in selection screen you have to provide the form name for whic you want to know the print program and output type.
    To modify a standard script first of all you have to copy the standard form for which you need modifications into Zform. Once you done this you can modify the layout set as per your requirement.Then what ever the modifications you have done in layout set for that you need to populate the data.For this you also need to do some modifications to the print program.so you have to options like directly you can modify the print program as per your requirement and other one is you can create a subroutine and do coding in that subroutine. Then you need call this subroutine in the Script Form.like this you can do modifications to the standard script........................... Reward me if its helpful..........
    Thanks & Regards.
    Laxman.P
    B'lore.

Maybe you are looking for

  • Premiere CC and Media Encoder crashing new Mac Pro

    Since installing CC on my new Mac Pro (Late 2013) Premiere and Adobe Media Encoder have been continually crashing my system. At first, my comp would freeze and I'd have to hard restart, then it switched to rebooting on in's own. This would happen 10-

  • Bootcache not updated correctly?

    I am using FileVault2 on OS X 10.8.3 (12D78). After uninstalling Little Snitch, a utility which brings a kernel extension, the kernel extension is still loaded into the kernel during boot: root# kextstat | grep -i snitch    51    0 0xffffff7f80f51000

  • Scribble tool crashes when zooming in

    I have rather simple selection to do with PS Touch 1.5.1. I'm using scribble tool and for accuracy  I zoom in heavily. After 3 to 4 attempts, I had to give up as some point of time the app crashes fully. Any proposals? Or should I wait for update? w.

  • Putting music on home stereo system

    I want to load my iPod with Christmas music and plug it into my tuner so the main speakers can play the music non-stop. A clerk in one of the major stores that sells iPods, music systems, tvs, etc. sold me a plug that has the same earphone plugs on e

  • Organization of movies imported from iPhoto

    I am just a beginner with iMovie, and wanting to start working with movies taken of my kids. Several months ago I set up iMovie for the first time by importing all my movies from iPhoto. I'm really confused as to the organization of my clips in the c