What does @link mean in java / android documentation?

What does it mean:

{@link KeyEvent#KEYCODE_ENTER} 

I saw this a couple of times, and I'm not quite sure what it represents. I am writing a test program using Robotium, JUnit and Android. If someone can offer some clarification on this, more specifically, the {@link} part, that would be great!

Thanks in advance.

+11
source share
4 answers

This is the annotation used when creating the Javadoc, you will have a link for the specified element. In this case, the KeyEvent class with the KEYCODE_ENTER anchor.

+14
source

I have not officially recognized, so maybe someone can expand their minds.

This is an abridged version that tells java docs to insert the link in the right place when they are viewed. For example, when you view javadocs for any method that is inside your IDE, you will be shown a link that will lead you to javadoc KeyEvent.KEYCODE_ENTER when pressed.

+4
source

Using @link you can link to Javadoc of another class or member of the class. See Also Javadoc Documentation for @link

When the Javadoc is generated, a link to the right page + anchor is inserted. This allows you to cross-reference other parts of Javadoc.

+3
source

This is a link to another class. You should be able to click this link in the IDE, for example Intellij IDEA and Eclipse. It is very useful to link other classes in the comments

0
source

All Articles