Saturday 20 January 2018

Javadoc: @since tag

@since tag is used to specify, this feature has existed since specific software release.

Syntax
@since since-text

Where can I use @since tag?
You can use on package, class, interface, constructor, method, or field.

Arithmetic.java
package com.java.tags;

/**
 * 
 * @author Hari Krishna
 *
 * @param <T>
 *            Type of element to perform Arithmetic operations
 * 
 * @since 1.0
 */
public interface Arithemtic<T extends Number> {

 /**
  * 
  * @param a
  *            First Operand
  * @param b
  *            Second Operand
  * 
  * @return sum of two operands a and b
  * 
  * @since 1.1
  * 
  */
 T sum(T a, T b);
}




Previous                                                 Next                                                 Home

No comments:

Post a Comment