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)
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
add a comment |
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
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 ofFoo.compareTo()or to search for usages of the base methodComparable.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
add a comment |
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
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
java intellij-idea
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 ofFoo.compareTo()or to search for usages of the base methodComparable.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
add a comment |
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 ofFoo.compareTo()or to search for usages of the base methodComparable.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
add a comment |
1 Answer
1
active
oldest
votes
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.
This will not find usages whereFoois used as a type parameter, e.g.bar(new Foo())for a functionbar(Comparable<T>).
– Balz Guenat
2 days ago
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
This will not find usages whereFoois used as a type parameter, e.g.bar(new Foo())for a functionbar(Comparable<T>).
– Balz Guenat
2 days ago
add a comment |
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.
This will not find usages whereFoois used as a type parameter, e.g.bar(new Foo())for a functionbar(Comparable<T>).
– Balz Guenat
2 days ago
add a comment |
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.
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.
answered Mar 26 at 9:41
vikas kumarvikas kumar
4,05011631
4,05011631
This will not find usages whereFoois used as a type parameter, e.g.bar(new Foo())for a functionbar(Comparable<T>).
– Balz Guenat
2 days ago
add a comment |
This will not find usages whereFoois used as a type parameter, e.g.bar(new Foo())for a functionbar(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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 methodComparable.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