Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use @See scaladoc?

Tags:

scala

scaladoc

What is the exact syntax of using @See scaladoc? How do I reference:

  • a method in the same class
  • another class
  • an "http" reference

?

like image 671
VasiliNovikov Avatar asked Dec 19 '18 12:12

VasiliNovikov


1 Answers

The syntax is the same as with any other part of the scaladoc. You basically add the @see notation, and then write pure text describing the reference. Examples:

  • @see [[method]]
  • @see [[YourCurrentClass.method]]
  • @see [[YourCurrentClass]]
  • @see See [[scala.concurrent.Future]] for more
  • @see See [[http://example.com the full documentation]] on possible values of ABC

EDIT:

official documentation on @see: https://docs.scala-lang.org/overviews/scaladoc/for-library-authors.html#usage-tags

official documentation on references in general: https://docs.scala-lang.org/overviews/scaladoc/for-library-authors.html#markup

like image 171
VasiliNovikov Avatar answered Nov 15 '22 15:11

VasiliNovikov