X
public <T extends Number> double calculate(
@NotNulli T a, @NotNulli T b
)

Sample method demonstrating all Javadoc tags
Returns calculated result.
Math.E
<T>
Math.E
Euler constant
calculation
java.version
2.718281828459045

 return a + b;

Deprecated

use Math.addExact

Params:

a – first parameter
b – second parameter

Type parameters:

<T> – type parameter

Returns:

sum result

Throws:

ArithmeticException – overflow

IllegalArgumentException – invalid input

Since:

1.0

Version:

2.0

Author:

John Doe

See Also:

Math.E

spec

link spec

provides

Math

uses

Math

hidden