root / tags / v1_0_2_Build_910 / libraries / libDriverManager / src / com / hardcode / driverManager / pruebas / NumericAdderDriver.java @ 11275
History | View | Annotate | Download (587 Bytes)
1 |
package com.hardcode.driverManager.pruebas; |
---|---|
2 |
|
3 |
import com.hardcode.driverManager.AbstractDriver; |
4 |
|
5 |
/**
|
6 |
* @author Fernando Gonz?lez Cort?s
|
7 |
*/
|
8 |
public class NumericAdderDriver extends AbstractDriver implements Adder{ |
9 |
|
10 |
/**
|
11 |
* @see com.hardcode.driverManager.pruebas.Adder#add(java.lang.String, java.lang.String)
|
12 |
*/
|
13 |
public String add(String a, String b) { |
14 |
return new Integer(new Integer(a).intValue() + new Integer(b).intValue()).toString(); |
15 |
} |
16 |
|
17 |
/**
|
18 |
* @see com.hardcode.driverManager.Driver#getName()
|
19 |
*/
|
20 |
public String getName() { |
21 |
return "drivers para n?meros del Fernan"; |
22 |
} |
23 |
|
24 |
} |