| EMMA Coverage Report (generated Sat Jan 08 08:46:59 EST 2011) |
|---|
| [all classes][net.sourceforge.finmodel.asset] |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| AssetImpl.java | 100% (1/1) | 100% (9/9) | 100% (40/40) | 100% (17/17) |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| class AssetImpl | 100% (1/1) | 100% (9/9) | 100% (40/40) | 100% (17/17) |
| AssetImpl (String, BigDecimal, BigDecimal): void | 100% (1/1) | 100% (12/12) | 100% (5/5) | |
| getAPR (): BigDecimal | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
| getCost (): BigDecimal | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
| getId (): long | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
| getName (): String | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
| setAPR (BigDecimal): void | 100% (1/1) | 100% (4/4) | 100% (2/2) | |
| setCost (BigDecimal): void | 100% (1/1) | 100% (4/4) | 100% (2/2) | |
| setId (long): void | 100% (1/1) | 100% (4/4) | 100% (2/2) | |
| setName (String): void | 100% (1/1) | 100% (4/4) | 100% (2/2) |
| 1 | package net.sourceforge.finmodel.asset; |
| 2 | |
| 3 | import java.io.Serializable; |
| 4 | import java.math.BigDecimal; |
| 5 | |
| 6 | public abstract class AssetImpl implements Asset, Serializable { |
| 7 | public static final long serialVersionUID = 1L; |
| 8 | |
| 9 | private long id; |
| 10 | protected BigDecimal cost; |
| 11 | protected BigDecimal apr; |
| 12 | protected String name; |
| 13 | |
| 14 | public AssetImpl( String name, BigDecimal cost, BigDecimal apr ) |
| 15 | { |
| 16 | this.name = name; |
| 17 | this.apr = apr; |
| 18 | this.cost = cost; |
| 19 | } |
| 20 | |
| 21 | public void setId(long id) { |
| 22 | this.id = id; |
| 23 | } |
| 24 | |
| 25 | @Override |
| 26 | public long getId() { |
| 27 | return id; |
| 28 | } |
| 29 | |
| 30 | @Override |
| 31 | public BigDecimal getCost() { |
| 32 | return cost; |
| 33 | } |
| 34 | |
| 35 | protected void setCost(BigDecimal cost) { |
| 36 | this.cost = cost; |
| 37 | } |
| 38 | |
| 39 | @Override |
| 40 | public BigDecimal getAPR() { |
| 41 | return apr; |
| 42 | } |
| 43 | |
| 44 | protected void setAPR( BigDecimal apr ) { |
| 45 | this.apr = apr; |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public String getName() { |
| 50 | return name; |
| 51 | } |
| 52 | |
| 53 | protected void setName(String name) { |
| 54 | this.name = name; |
| 55 | } |
| 56 | } |
| [all classes][net.sourceforge.finmodel.asset] |
| EMMA 2.1.5320 (stable) (C) Vladimir Roubtsov |