Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create function description / definition in java [duplicate]

Tags:

java

Is there someone here can give me idea or informations on how to create a functions definition, same to what we got when we write the signature of a function and than we press ctrl + space, in other world, like this :

File file = new File    ( and when we pressed ctrl+space we got as showing in the picture bellow)

After pressing ctrl + space

I googled a lot but i didn't found any solutions, thanks if someone here can help me.

like image 304
Ahmad MOUSSA Avatar asked Nov 23 '25 07:11

Ahmad MOUSSA


1 Answers

Read about the Javadoc.

Look the File class source for an example:

/**
 * Creates a new <code>File</code> instance by converting the given
 * pathname string into an abstract pathname.  If the given string is
 * the empty string, then the result is the empty abstract pathname.
 *
 * @param   pathname  A pathname string
 * @throws  NullPointerException
 *          If the <code>pathname</code> argument is <code>null</code>
 */
like image 164
Pier-Alexandre Bouchard Avatar answered Nov 25 '25 21:11

Pier-Alexandre Bouchard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!