Is there a Java convention to refer to methods, static and otherwise, any specific one or the whole overload, etc?
e.g.
String.valueOf - referring to all overloads of static valueOf
String.valueOf(char) - specific overload, formal parameter name omittable?String.split - looks like a static method, but actually an instance method
aString.split is the convention?String().split?String#split - I've seen this HTML anchor form too, which I guess is javadoc-influencedIs there an authoritative recommendation on how to clearly refer to these things?
Using Class.methodName to refer to all overloads and Class.methodName(type) to refer to a specific overload is indeed the convention (as recommended by sun in this style guide for javadocs). However there is no convention to distinguish between static and non-static methods (though aString.split would make sense).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With