Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Quoting approximately Eckel:
<?> - unlimited mask, means "anything", in most cases the compiler does not see the difference between T and <?>.
Without ? you can do more with parameters, but with ? - accept a wider range of parameters.
? extends U - some type that is a descendant of U, ? super T - some type that is an ancestor of T. Your scheme (as you have written) is usually applied: the first part for the receiver, the second for the source when processing something.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question