© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Check for a specific generic type - Java Community | Help. Code. Learn.
JC|HCL
Java Community | Help. Code. Learn.
•
3y ago
•
14 replies
blockgoblin31
Check for a specific generic type
I have a variable of the type Supplier
<
? extends Item
> and want to check if it
’s Supplier
<
? extends BlockItem
>
. Is there a way to do that
? instanceOf doesn
’t seem to work according to IntelliJ
. Minecraft forge 1
.16
.5 so java 8
.
Recent Announcements
Similar Threads
Use a Class for a generic type?
JC|HCL
Java Community | Help. Code. Learn. / java-help
2y ago
Type inference for generic parameters when calling a method
JC|HCL
Java Community | Help. Code. Learn. / java-help
15mo ago