Naming convention when casually referring to methods in Java

Posted by polygenelubricants on Stack Overflow See other posts from Stack Overflow or by polygenelubricants
Published on 2010-04-04T13:23:39Z Indexed on 2010/04/04 13:33 UTC
Read the original article Hit count: 472

Filed under:
|

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
    • Maybe aString.split is the convention?
  • String#split - I've seen this HTML anchor form too, which I guess is javadoc-influenced

Is there an authoritative recommendation on how to clearly refer to these things?

© Stack Overflow or respective owner

Related posts about java

Related posts about naming-conventions