| 3 | import java.math.BigDecimal; |
| 4 | |
| 5 | public class SubFunction implements Function{ |
| 6 | |
| 7 | @Override |
| 8 | public String execute(String[] args) { |
| 9 | BigDecimal value = new BigDecimal(args[0]); |
| 10 | for(int index=1;index<args.length;index++){ |
| 11 | value =value.subtract(new BigDecimal(args[index])); |
| 12 | } |
| 13 | return String.valueOf(value); |
| 14 | } |
| 15 | |
| 16 | @Override |
| 17 | public String getReferenceKey() { |
| 18 | // TODO Auto-generated method stub |
| 19 | return "sub"; |
| 20 | } |
| 21 | |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected