| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 10 | public class Iterator implements IteratorInterface{ |
||
| 11 | |||
| 12 | private final List<ItemInterface> bucket; |
||
| 13 | |||
| 14 | public Iterator(List<ItemInterface> bucket) { |
||
| 15 | this.bucket = bucket; |
||
| 16 | } |
||
| 17 | |||
| 18 | @Override |
||
| 19 | public String iterateItems() { |
||
| 20 | StringBuilder output = new StringBuilder(); |
||
| 21 | |||
| 22 | for (ItemInterface item : bucket) { |
||
| 23 | output.append(String.format("%s %s %s\n", item.getName(), item.getPrice(), item.getDescription())); |
||
| 24 | } |
||
| 25 | |||
| 26 | return output.toString(); |
||
| 27 | } |
||
| 29 |