What is the proper way to write a fully qualified reference to a method name in Java?
Message[] com.sun.mail.imap.IMAPFolder#addMessages(Message[])
Message[] com.sun.mail.imap.IMAPFolder.addMessages(Message[])
- Some other way
What is the proper way to write a fully qualified reference to a method name in Java?
Message[] com.sun.mail.imap.IMAPFolder#addMessages(Message[])
Message[] com.sun.mail.imap.IMAPFolder.addMessages(Message[])
If the signature of the method is Message[] addMessages(Message[] msgs)
...
...and the class name is IMAPFolder
...
...and it's in the package com.sun.map.imap
...
...then the fully qualified method name would be com.sun.map.imap.IMAPFolder.addMessages(Message[] msgs)
.
Visible class/instance variables share the same pattern, although for the sake of OO design, this is typically discouraged.
Normally, one only concerns themselves with the fully qualified object name, not the method/[instance|class] variable name.