|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Calculator
This interface is a calculator.
| Method Summary | |
|---|---|
int |
countNumberOfUppercaseLetters(String text)
This method counts all uppercase letters of a text. |
CalculatorValueObject |
echoValueObject(CalculatorValueObject o)
This method does an echo of the given object. |
double |
getArea(double a,
double b)
This method calculates the area of a rectangle. |
void |
throwMeAnException()
This method throws an exception for test reason. |
void |
throwMeASpecialException(String action)
This method throws a special exception for test reason. |
| Method Detail |
|---|
double getArea(double a,
double b)
a - Is the first side.b - Is the second side.
void throwMeAnException()
throws CalculatorException
CalculatorException - will be thrown every time.
void throwMeASpecialException(String action)
throws SpecialCalculatorException
action - Is the dynamic part of the thrown exception.
SpecialCalculatorException - will be thrown every time.int countNumberOfUppercaseLetters(String text)
text - Is the object to analyze.
CalculatorValueObject echoValueObject(CalculatorValueObject o)
o - Is the object to echo.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||