Methods to find interface

Hi,
what are the methods to find interface....
Thanks in Advance.
regards,
kranthi.

Hello,
Classes are composed by methods and attributes, some of these methods are in interfaces that are shared among classes.
I suggest you to take the class name and go to transaction SE24 in this you'll find the interfaces tab, and in this you can see the interfaces that compose the class.
Another way is go to the methods tab and find methods compose by a <interface_name>~<method>.
Regards,

Similar Messages

  • Method to find no. of records in a result set.

    hi,
    tell me the method to find the no. of records in a result set.
    I tried getFetchSize() method of ResultSet Interface. But it gives the error method not found in ResultSet interface.
    thanks in advance.

    You can use cachedRowSet.size() with JDBC 2.0 (I think).
    If you have a scrollable result set you use rs.last(), rs.getRow() and can then reposition your cursor using rs.beforeFirst().
    You can use the SQL select count(*).
    You can loop through the result set and count the rows.
    There are many, many posts concerning this topic. Be sure to take advantage of your ability to search the forums so you don't have to wait for an answer. You may want to search now and see if there are more possible solutions.
    Good Luck.

  • Generic arguments in a Method on an interface.

    Hi all,
    I'm having trouble with the following code:
    Basically this is what i want:
    the Classes:
    public class SuperClass
    public class ClassA extends SuperClass
    public class ClassB extends SuperClass
    public class ClassC extends SuperClass
    The interface
    public interface interfaceX
       public methodX(SuperClass A);
    Implementation of the interface
    public class classX implements interfaceX
         public methodX(ClassA A)
    }My problem is on the declaration of the interface interfaceX in the class classX.
    How can i do such thing?
    I'm trying to avoid the "correct" declaration. this is:
    public methodX(SuperClass A)
            { ... }because I have a couple of class that extends that interface with deferents arguments, all of them extending from the SuperClass.
    I know i could use the instanceof keywork, but i'm trying to avoid the extra checking...
    Thanks in advance for any help!!
    Edited by: ValdemarP on Mar 29, 2010 1:55 AM

    i know I'm changing the contract, but only the arguments. if you notice, the new arguments is child of class SuperClass... How can I do this? Declare an method in an interface that accepts an arguments of some class and implement that interface, with argument that are children of the arguments declared in the interface... hope i was more clear this time... :(
    Example. I can do this on an interface:
    public void MethodListGeneric(List<? extends SuperClass> xpto )and during the implementation of the interface, I can declare the method using any arguments for the generic list, that extends SuperClass.
    Example:
    public class xpto extends InterfaceX
        public void MethodListGeneric(List<ClassA> xpto )
         // in here I've use ClassA insted of SuperClass
    }Edited by: ValdemarP on Mar 29, 2010 3:15 AM
    Edited by: ValdemarP on Mar 29, 2010 3:15 AM

  • How to create a method with an interface parameter?

    Hi there.
    I would create a method with an interface parameter. I mean this:
    public interface MyInt {
        public void method(int i);
    public class SubClass implements MyInt {
        public void method(int i) {
            System.out.println("The number is: " + i);
    public class MainClass {
        public MainClass(MyInt inter) {
            inter.method(10);
        public static void main(String[] args) {
    (*)     new MainClass(new SubClass());
    }I tried to compile this but do not work (incompatible types on (*)) . Is it possible to do something like that or not?

    I compiled and runned this code on my machine and it works fine.
    How did you did to compile and run this code ?
    Did you put each code on its own file or all codes in the same file ?
    I did like this:
    I put each code in its own file and put all in the same dir, after I did:
    javac -classpath . MainClass.java
    After that, I did:
    java -classpath . MainClass
    I hope this help you
    Lucas

  • Method in abstract interface

    Suppose I have an abstract interface which has one method:
    public abstract interface IParent {
      public void setSignal(int signal);
    }And I have a concrete interface inherited from IParent which also have one method:
    public interface IChild extends IParent {
      public void setSpeed(int speed);
    }If I define a class which implements IChild it only asks me to implement setSpeed method.
    public class Test implements IChild {
    }Why it does not ask me to implement setSignal method of IParent interface?

    Suppose I have an abstract interface which has one method:
    Every interface is implicitly abstract.
    public void setSignal(int signal);
    Every method declaration in the body of an interface is implicitly public.
    And I have a concrete interface inherited from IParent which also have one method:
    Every interface is implicitly abstract.
    If I define a class which implements IChild it only asks me to implement setSpeed method.'It' being what?
    Why it does not ask me to implement setSignal method of IParent interface?I have no idea what 'it' you're talking about, but the Test class will not compile.

  • Property or method to find missing fonts...

    Hi Everyone,
    Is there any direct property or method to find missing fonts in EPS doucments in Illustrator CS4 like we do in InDesign. I have tried this by doing comparison of document fonts and application fonts to get missing fonts but it won't work.
    Any help would be appreciatable. Thanks in advance.
    Regards
    Thiyagu

    Have you tried a search of this forum… Im sure I posted a work around to this… The simple answer is NO not in the Illustrator DOM you can however read the file as text and the stuff you want is in the Illustrator file comments…

  • Getting return value of a method in an interface

    Hello! I have a problem. I have an interface called I. One of the declared method in this interface is M. And I have a class called C. Class C declares Interface I. I want to get the return value of the method M. I used invoke method. M.invoke(anInstance, arg[]). You can't take the instance of interfaces or abstract classes. If I use a class instead of instance for anInstance variable, i get "java.lang.IllegalArgumentException: object is not an instance of declaring class" error. If I use an instance, i get "java.lang.IllegalAccessException: Can not call newInstance() on the Class for java.lang.Class" error. This is because of getting an instance of an interface. if you can help me. i will be greatfully happy.

    Thanks for the feedback Tom although you should rethink what you said.
    I did not trash your suggestion, nor did I make any reference to it.
    Perhaps you should read the OP to see where you went wrong.
    OP wants to know return type of Interface's methodNo, the OP wants to obtain the return value.
    AND OP knows that instantiation won't work.He was trying to instantiate an Interface, which is not possible. In order for him invoke a Method he needs a concrete implementation. I was simply pointing out what he needs to do in order to acheive his aim.
    b) there may be no known implementing classes at
    runtimeIf there is no implementing class provided then he will not be able to invoke a method on its instance.
    c) even if there were such a class, instantiating it
    may have unwanted side effects, takes unnecessary
    timeWhy is that a problem? One reason for invoking M is to see what happens.
    the class may have N methods while the interface
    has only one, so you might look for the correct method
    too longIf you bothered to study the code I supplied I obtain a Method from the Interface class so there is no problem in "looking" for a method, besides which there can be exactly 1 method with a given signature in any class so there is no searching involved.
    On a personal note, such negative replies are neither helpful to the OP and can cause a credibility problem caused by being labelled a Troll.

  • How to use my findTheHighest method to find the highest value in my two dim

    I am going to create a 13row by 10 colume two dimensional array.
    how to use my findTheHighest method to find the highest value in my two dimensional array.
    .When i compile this program , i got those as following;
    "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsExce
    at TaxEvolution.findTheHighest(TaxEvolution.java:31)
    at TaxEvolutionClient.main(TaxEvolutionClient.java:25)"
    public class TaxEvolution{
    public double[][] salesTaxRates;
    public TaxEvolution()
      salesTaxRates = new double[13][10];
      fillProvinTaxRates();
    private void fillProvinTaxRates()
      for ( int row = 0; row < salesTaxRates.length; row++ )
        for ( int column = 0; column < salesTaxRates[row].length; column++ )
          salesTaxRates[row][column]= (int)(Math.random()*5000) + 1;
    public double findTheHighest()
        double highest = salesTaxRates[0][0];
        for ( int row = 0; row <= salesTaxRates.length; row++ )
          for ( int column = 0; column <= salesTaxRates[row].length; column++ )
             if ( salesTaxRates[row][column] >= highest )
                   highest = salesTaxRates[row][column];
        return highest;   
    public double[][] arrayTaxEvolution()
      double[][] returnTaxRates = new double[13][10];
      for ( int row = 0; row < salesTaxRates.length; row++ )
        for ( int column = 0; column < salesTaxRates[row].length; column++ )
          returnTaxRates = salesTaxRates;
      return returnTaxRates;
    public class TaxEvolutionClient{
    public static void main( String[] args ){
      TaxEvolution protaxRateList = new TaxEvolution();
      double[][] taxRateList = protaxRateList.arrayTaxEvolution();
        for ( int i = 0; i < taxRateList.length; i++ )
          for ( int j = 0; j < taxRateList[0].length; j++ )
            System.out.print( taxRateList[i][j] + "\t" );               
            System.out.print( protaxRateList.findTheHighest + "\t" );
    }

    Multiposted
    http://forum.java.sun.com/thread.jspa?threadID=699057&tstart=0

  • Static method allowed in interface?

    Hello,
    I've written the following code:
    package a.b.c.d;
    import java.util.Map;
    public interface Adapter
    public void execute(Mapping mapping) throws Exception;
    public static Map getParameters( ) throws Exception;
    My compiler complains thusly:
    "Adapter.java": Error #: 217 : modifier static not allowed here at line 8, column 23
    Is it illegal then to declare a static method in an interface and if so why? Thanks in advance!
    -Exits

    An interface itself is just a contract that says "I will implement thus-and-such methods with such-and-such a signature." The interface has no "meat" to it, so it can't implement the static.
    Now you're thinking, if MyClass implements MyInterface, then MyClass can just have a static method that is the one on MyInterface. The problem is with how you're getting your MyInterface-type object. You can do it like this:
    MyInterface obj = new MyClass();
    obj.myStaticMethod(); //Bzzzzzzzt! blows up at compile time...or...
    MyInterface obj = someMethodThatReturnsClassImplementingMyInterface();
    obj.myStaticMethod(); //Bzzzzzt! same problemYou can't call a static method on an instance; you have to call it on the class,
    MyClass.myStaticMethod();You can't call it on the interface directly because, again, the interface has no guts inside it. There's really no reason to put a static method on an interface because that's not what interfaces are for. If MyClass needs a static, put it there.

  • Method definition in Interfaces

    How we are able to invoke a method of an interface in a class? For example, we are invoking the method next() of the ResultSet interface in JDBC classes. How this is possible since we are not implementing the method anywhere? Please send us your valuable answer as soon as possible Thanks in advance.
    Shanil Kumar

    Actually a featur of Java thats growing on me more and more each day!!
    The idea is the interface and the implementation are two distinct but related features....
    Given that a single interface may be implemented by many classes, for what ever purpose, you can cast any instance of these implementing classes to the interface and work with it, calling methods on it, without actually knowing what implementation is actually being used!!!
    For example I will currently be coding a simple interface for logging. MyLogger just say. it will define basic methods available in any logging tool. The idea is that I can then implement the interface to interact with a particular logging famework or tool, such as JLogger for example. I may use three differnet such Logging tools, which may have completely different ways of working.
    I can now build code using my interface,
    and switch the actual logging utility that is really being used....
    Its a bit difficult to explain, but if you play arround with it youll get to understand it...
    The key point to understand is that your invoking methods on an instance that implements the interface...
    MyLoggeer logger = new JLoggerImplementation();
    here a concrete implementation is asigned to the interface/
    I can now call methods of the interface, or more precisely the implementing instance.....
    Hope this helps.
    J.Prisco

  • Is there a quick fix option for implementing the unimplemented methods for an interface?

    Hi guys,
    It's a useful feature and it seems to exist in raw Eclipse.  I'm aware of the Source -> Override/Implement methods, but this is clunky when you could hover over an interface and hit Ctrl+1 and auto-implement all methods  for that interface (which seems to be pretty much most use cases for me).  At the moment the quick-fix only seems to have renaming options.  Is there something wrong with my configuration?
    If not, is there a way to make feature requests?  :-))
    Thanks!
    Jarrod

    I have safari on my iPone and like it there... thought that I would give it a try. Well, IE just started to slow to a paint drying speed and then wouldn't load anything. Safari was installed but crashed in threee seconds each occuarnce. No reason, no error message.
    I downloaded (eventually) Firefox... loaded it, chose my extentions and have never had a problem with it since. I unloaded 5 times (gave up on) Safari, reset IE, reinstalled the extentions for that and now it is working after cleaning all of the files, passwords, forms autocomplete, temp files, etc.
    Firefox works and all of my freinds and kids use it. That is why it is so good. Remember, if your car worked like your PC you wold junk it right away. Reliability is not in the MS dictionary. It is something that you have to add via tons of fixes, add-ons and program balancing so that conflicts don't occer. I want my MAC, I want my, I want my MAC...

  • Hi  anyone found a method of finding duplicate photos

    anyone found a method of finding duplicate photos
    The sort could by by date, name, Lat Long or any other method

    These applications will identify and help remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    DeCloner - $19.95 - can find duplicates in iPhoto Libraries or in folders on the HD.
    DupliFinder - $7 - shows which events the photos are in.
    iPhoto AppleScript to Remove Duplicates - Free
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: i photo has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but the only duplicate finder app that detected the iPhone HDR and normal photos as being duplicates was PhotoSweeper.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have different file names.
    iPLM, however, is the most versatile and best all around iPhoto utility to have.
    OT

  • Normal delay to display past files via Finder interface in Time Machine?

    I have a Time Capsule as router running my gigabit network and as a Time Machine backup device. When I want to retrieve a file from the past via the Finder interface to Time Machine, I hear a lot of noise from my Time Capsule (about 6 feet away), and more importantly, there are long delays (at least 10-15 seconds) in getting a response from the date scale on the right side of the screen (i.e. being able to click on a different date) and in displaying the contents of the folder at a new date in time.
    Are such delays to be expected? Is there anything I can do to speed things up?

    Well personally I've had basically no problems with Time Machine and the Time Capsule. But looking at these discussions there are certainly a lot of people with: endless preparing, endless backing up, endless finishing, hanging the system, knocking down internet when backing up, unable to mount, unable to find backup, unable to find TC, unable to copy, .........
    Sure in some instances some of these can be worked around fairly easily, but I perceive some fairly serious flaws both in implementation and in documentation.
    As I see it far more time is spent backing up than restoring, for me I'm not disturbed by the delays....

  • What is the best method for finding duplicates in iPhoto?

    What is the best method for finding duplicates in iPhoto?  I would like them identified and then prompted to delete or not.

    iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - , duplicate annahalitor, Decloner
    LN

  • Method for finding row count after executing query

    Is there a method for finding the row count from the resultset after executing a query on a database ?

    The best way: read the data from the result set. If you read it into e.g. a LinkedList, size() will tell you how many rows you got. Or you could increment a counter.
    There are other ways, such as variants of ResultSet that do the read loop for you. But since you'll be doing the fetch loop anyway, those just add unnecessary work and moving parts.

Maybe you are looking for