1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package javax.faces.internal; |
17 | |
|
18 | |
import java.util.AbstractCollection; |
19 | |
import java.util.Collection; |
20 | |
import java.util.Iterator; |
21 | |
|
22 | |
import javax.faces.model.ResultSetDataModel; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
public class ResultSetBaseCollection extends AbstractCollection { |
31 | |
|
32 | 0 | ResultSetDataModel.ResultSetMap map = null; |
33 | |
|
34 | 0 | public ResultSetBaseCollection(ResultSetDataModel.ResultSetMap map) { |
35 | 0 | this.map = map; |
36 | 0 | } |
37 | |
|
38 | |
public boolean contains(Object o) { |
39 | 0 | return map.containsKey(o); |
40 | |
} |
41 | |
|
42 | |
public boolean isEmpty() { |
43 | 0 | return map.isEmpty(); |
44 | |
} |
45 | |
|
46 | |
public Iterator iterator() { |
47 | 0 | return map.keySet().iterator(); |
48 | |
} |
49 | |
|
50 | |
public int size() { |
51 | 0 | return map.size(); |
52 | |
} |
53 | |
|
54 | |
public final boolean add(Object o) { |
55 | 0 | throw new UnsupportedOperationException(); |
56 | |
} |
57 | |
|
58 | |
public final boolean addAll(Collection c) { |
59 | 0 | throw new UnsupportedOperationException(); |
60 | |
} |
61 | |
|
62 | |
public final void clear() { |
63 | 0 | throw new UnsupportedOperationException(); |
64 | |
} |
65 | |
|
66 | |
public final boolean remove(Object o) { |
67 | 0 | throw new UnsupportedOperationException(); |
68 | |
} |
69 | |
|
70 | |
public final boolean removeAll(Collection c) { |
71 | 0 | throw new UnsupportedOperationException(); |
72 | |
} |
73 | |
|
74 | |
public final boolean retainAll(Collection c) { |
75 | 0 | throw new UnsupportedOperationException(); |
76 | |
} |
77 | |
|
78 | |
} |