Overload API methods with care « Java, SQL, and jOOQ
Overload API methods with care – the sequel | Javalobby
java - Reference is ambiguous with generics - Stack Overflow
Java Generics is a good feature. However, it is also poorly designed, mostly because of its backward compatibility. It is a language feature designed for syntactic checking. While at runtime, it simply use Object to replace the template. Even worse, it still support implementation without specifying the template parameter.
I like the idea from StackOverFlow:
I would suggest to use different method names. Overloading is never a necessity.
As far as I can remember, Joshua Block said something similar in "Effective Java"
Overload API methods with care – the sequel | Javalobby
java - Reference is ambiguous with generics - Stack Overflow
Java Generics is a good feature. However, it is also poorly designed, mostly because of its backward compatibility. It is a language feature designed for syntactic checking. While at runtime, it simply use Object to replace the template. Even worse, it still support implementation without specifying the template parameter.
I like the idea from StackOverFlow:
I would suggest to use different method names. Overloading is never a necessity.
As far as I can remember, Joshua Block said something similar in "Effective Java"
No comments:
Post a Comment