How do I find usages of my class where it is used as a certain implemented interface? The Next CEO of Stack OverflowHow do you assert that a certain exception is thrown in JUnit 4 tests?Find where java class is loaded fromFind Java classes implementing an interfaceHow do I discover memory usage of my application in Android?IntelliJ inspection gives “Cannot resolve symbol” but still compiles codeHow to navigate to implementing class from generic interface in Eclipse?Determine if a Class implements a interface in JavaWhat does “Could not find or load main class” mean?How to implement the Java comparable interface?what makes a variable be visible (intellij idea)

FBX seems to be empty when imported into Blender

Why has the US not been more assertive in confronting Russia in recent years?

Can we say or write : "No, it'sn't"?

Can I equip Skullclamp on a creature I am sacrificing?

What does convergence in distribution "in the Gromov–Hausdorff" sense mean?

How to transpose the 1st and -1th levels of arbitrarily nested array?

How to subset dataframe based on a "not equal to" criteria applied to a large number of columns?

"and that skill is always a class skill for you" - does "always" have any meaning in Pathfinder?

What connection does MS Office have to Netscape Navigator?

What happened in Rome, when the western empire "fell"?

In excess I'm lethal

What is the purpose of the Evocation wizard's Potent Cantrip feature?

Novel about a guy who is possessed by the divine essence and the world ends?

What flight has the highest ratio of time difference to flight time?

How should I support this large drywall patch?

How do scammers retract money, while you can’t?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Written every which way

If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?

At which OSI layer a user-generated data resides?

What is the result of assigning to std::vector<T>::begin()?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

On model categories where every object is bifibrant

How does the mv command work with external drives?



How do I find usages of my class where it is used as a certain implemented interface?



The Next CEO of Stack OverflowHow do you assert that a certain exception is thrown in JUnit 4 tests?Find where java class is loaded fromFind Java classes implementing an interfaceHow do I discover memory usage of my application in Android?IntelliJ inspection gives “Cannot resolve symbol” but still compiles codeHow to navigate to implementing class from generic interface in Eclipse?Determine if a Class implements a interface in JavaWhat does “Could not find or load main class” mean?How to implement the Java comparable interface?what makes a variable be visible (intellij idea)










0















Consider the following example:



class Foo implements Comparable<Foo> 
...



How do I find the places where Foo is used as a Comparable?



Edit: I have opened a feature request: https://youtrack.jetbrains.com/issue/IDEA-209540










share|improve this question
























  • Did you try the SSR?

    – CrazyCoder
    Mar 22 at 20:15











  • Maybe I misunderstand you but that would only find the class definition, not the usages.

    – Balz Guenat
    Mar 25 at 8:07











  • Please clarify your question supplying a couple of examples what do you want to find and what should not appear in the search results. Do you want to find class references or expressions of type Foo?

    – Tagir Valeev
    Mar 25 at 8:20






  • 1





    Use "Find Usage" (Alt + F7) on the compareTo method?

    – maio290
    Mar 25 at 8:30











  • That will not work. It gives me two options: To search for usages of Foo.compareTo() or to search for usages of the base method Comparable.compareTo(). The former gives me no results, because the method is never used on variables with declared type Foo. The latter gives me all calls to compareTo, on any Comparable, which is obviously a crapload and not useful.

    – Balz Guenat
    Mar 25 at 8:36
















0















Consider the following example:



class Foo implements Comparable<Foo> 
...



How do I find the places where Foo is used as a Comparable?



Edit: I have opened a feature request: https://youtrack.jetbrains.com/issue/IDEA-209540










share|improve this question
























  • Did you try the SSR?

    – CrazyCoder
    Mar 22 at 20:15











  • Maybe I misunderstand you but that would only find the class definition, not the usages.

    – Balz Guenat
    Mar 25 at 8:07











  • Please clarify your question supplying a couple of examples what do you want to find and what should not appear in the search results. Do you want to find class references or expressions of type Foo?

    – Tagir Valeev
    Mar 25 at 8:20






  • 1





    Use "Find Usage" (Alt + F7) on the compareTo method?

    – maio290
    Mar 25 at 8:30











  • That will not work. It gives me two options: To search for usages of Foo.compareTo() or to search for usages of the base method Comparable.compareTo(). The former gives me no results, because the method is never used on variables with declared type Foo. The latter gives me all calls to compareTo, on any Comparable, which is obviously a crapload and not useful.

    – Balz Guenat
    Mar 25 at 8:36














0












0








0








Consider the following example:



class Foo implements Comparable<Foo> 
...



How do I find the places where Foo is used as a Comparable?



Edit: I have opened a feature request: https://youtrack.jetbrains.com/issue/IDEA-209540










share|improve this question
















Consider the following example:



class Foo implements Comparable<Foo> 
...



How do I find the places where Foo is used as a Comparable?



Edit: I have opened a feature request: https://youtrack.jetbrains.com/issue/IDEA-209540







java intellij-idea






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 9:33







Balz Guenat

















asked Mar 21 at 16:46









Balz GuenatBalz Guenat

3702317




3702317












  • Did you try the SSR?

    – CrazyCoder
    Mar 22 at 20:15











  • Maybe I misunderstand you but that would only find the class definition, not the usages.

    – Balz Guenat
    Mar 25 at 8:07











  • Please clarify your question supplying a couple of examples what do you want to find and what should not appear in the search results. Do you want to find class references or expressions of type Foo?

    – Tagir Valeev
    Mar 25 at 8:20






  • 1





    Use "Find Usage" (Alt + F7) on the compareTo method?

    – maio290
    Mar 25 at 8:30











  • That will not work. It gives me two options: To search for usages of Foo.compareTo() or to search for usages of the base method Comparable.compareTo(). The former gives me no results, because the method is never used on variables with declared type Foo. The latter gives me all calls to compareTo, on any Comparable, which is obviously a crapload and not useful.

    – Balz Guenat
    Mar 25 at 8:36


















  • Did you try the SSR?

    – CrazyCoder
    Mar 22 at 20:15











  • Maybe I misunderstand you but that would only find the class definition, not the usages.

    – Balz Guenat
    Mar 25 at 8:07











  • Please clarify your question supplying a couple of examples what do you want to find and what should not appear in the search results. Do you want to find class references or expressions of type Foo?

    – Tagir Valeev
    Mar 25 at 8:20






  • 1





    Use "Find Usage" (Alt + F7) on the compareTo method?

    – maio290
    Mar 25 at 8:30











  • That will not work. It gives me two options: To search for usages of Foo.compareTo() or to search for usages of the base method Comparable.compareTo(). The former gives me no results, because the method is never used on variables with declared type Foo. The latter gives me all calls to compareTo, on any Comparable, which is obviously a crapload and not useful.

    – Balz Guenat
    Mar 25 at 8:36

















Did you try the SSR?

– CrazyCoder
Mar 22 at 20:15





Did you try the SSR?

– CrazyCoder
Mar 22 at 20:15













Maybe I misunderstand you but that would only find the class definition, not the usages.

– Balz Guenat
Mar 25 at 8:07





Maybe I misunderstand you but that would only find the class definition, not the usages.

– Balz Guenat
Mar 25 at 8:07













Please clarify your question supplying a couple of examples what do you want to find and what should not appear in the search results. Do you want to find class references or expressions of type Foo?

– Tagir Valeev
Mar 25 at 8:20





Please clarify your question supplying a couple of examples what do you want to find and what should not appear in the search results. Do you want to find class references or expressions of type Foo?

– Tagir Valeev
Mar 25 at 8:20




1




1





Use "Find Usage" (Alt + F7) on the compareTo method?

– maio290
Mar 25 at 8:30





Use "Find Usage" (Alt + F7) on the compareTo method?

– maio290
Mar 25 at 8:30













That will not work. It gives me two options: To search for usages of Foo.compareTo() or to search for usages of the base method Comparable.compareTo(). The former gives me no results, because the method is never used on variables with declared type Foo. The latter gives me all calls to compareTo, on any Comparable, which is obviously a crapload and not useful.

– Balz Guenat
Mar 25 at 8:36






That will not work. It gives me two options: To search for usages of Foo.compareTo() or to search for usages of the base method Comparable.compareTo(). The former gives me no results, because the method is never used on variables with declared type Foo. The latter gives me all calls to compareTo, on any Comparable, which is obviously a crapload and not useful.

– Balz Guenat
Mar 25 at 8:36













1 Answer
1






active

oldest

votes


















0














Try searching through command + shift + f and enter Comparable<Foo> as input. it will point out all the instances where it occurred.



Hope this helps.






share|improve this answer























  • This will not find usages where Foo is used as a type parameter, e.g. bar(new Foo()) for a function bar(Comparable<T>).

    – Balz Guenat
    2 days ago











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285406%2fhow-do-i-find-usages-of-my-class-where-it-is-used-as-a-certain-implemented-inter%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Try searching through command + shift + f and enter Comparable<Foo> as input. it will point out all the instances where it occurred.



Hope this helps.






share|improve this answer























  • This will not find usages where Foo is used as a type parameter, e.g. bar(new Foo()) for a function bar(Comparable<T>).

    – Balz Guenat
    2 days ago















0














Try searching through command + shift + f and enter Comparable<Foo> as input. it will point out all the instances where it occurred.



Hope this helps.






share|improve this answer























  • This will not find usages where Foo is used as a type parameter, e.g. bar(new Foo()) for a function bar(Comparable<T>).

    – Balz Guenat
    2 days ago













0












0








0







Try searching through command + shift + f and enter Comparable<Foo> as input. it will point out all the instances where it occurred.



Hope this helps.






share|improve this answer













Try searching through command + shift + f and enter Comparable<Foo> as input. it will point out all the instances where it occurred.



Hope this helps.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 26 at 9:41









vikas kumarvikas kumar

4,05011631




4,05011631












  • This will not find usages where Foo is used as a type parameter, e.g. bar(new Foo()) for a function bar(Comparable<T>).

    – Balz Guenat
    2 days ago

















  • This will not find usages where Foo is used as a type parameter, e.g. bar(new Foo()) for a function bar(Comparable<T>).

    – Balz Guenat
    2 days ago
















This will not find usages where Foo is used as a type parameter, e.g. bar(new Foo()) for a function bar(Comparable<T>).

– Balz Guenat
2 days ago





This will not find usages where Foo is used as a type parameter, e.g. bar(new Foo()) for a function bar(Comparable<T>).

– Balz Guenat
2 days ago



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285406%2fhow-do-i-find-usages-of-my-class-where-it-is-used-as-a-certain-implemented-inter%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해