UnmodifiableConvertingList.java
biz/hammurapi/util/UnmodifiableConvertingList.java
Violations
Inspector |
Message |
Severity |
Location |
Java Inspector 048 |
Copyrights information should be present in each file. |
1 |
|
Java Inspector 089 |
Undocumented top level type |
2 |
30:1
|
Java Inspector 089 |
Undocumented constructor |
2 |
34:9
|
Java Inspector 089 |
Undocumented method |
2 |
40:9
|
Java Inspector 089 |
Undocumented method |
2 |
44:9
|
Java Inspector 089 |
Method is not properly documented |
2 |
52:9
|
Java Inspector 089 |
Javadoc contains tag for non-existent parameter o |
2 |
52:9
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23package biz.hammurapi.util;
24
25import java.util.AbstractList;
26import java.util.List;
27
28import biz.hammurapi.convert.ConverterClosure;
29
30public class UnmodifiableConvertingList extends AbstractList {
31 private List master;
32 private ConverterClosure converter;
33
34 public UnmodifiableConvertingList(List master, ConverterClosure converter) {
35 super();
36 this.master=master;
37 this.converter=converter;
38 }
39
40 public Object get(int index) {
41 return converter.convert(master.get(index));
42 }
43
44 public int size() {
45 return master.size();
46 }
47
48
49
50
51
52 public List getMaster() {
53 return master;
54 }
55}
56