I have a template class in Java, such as ArrayList. I want to create a class that extends the template class, while fixing SomeType to some type. Later, I want to be able to pass the non-templated new class as an argument to methods that originally accepted ArrayList. Is that possible?
Thanks.
I have a template class in Java, such as ArrayList. I want to create
Share
I believe you can. Check out this post at JavaRanch
What you’re looking for is