1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 package org.sat4j.core;
31
32 import org.sat4j.specs.IVecInt;
33 import org.sat4j.specs.IteratorInt;
34
35
36
37
38
39
40
41 public final class ReadOnlyVecInt implements IVecInt {
42
43
44
45
46 private static final long serialVersionUID = 1L;
47
48 private final IVecInt vec;
49
50 public ReadOnlyVecInt(IVecInt vec) {
51 this.vec = vec;
52 }
53
54 public void clear() {
55 throw new UnsupportedOperationException();
56 }
57
58 public boolean contains(int e) {
59 return this.vec.contains(e);
60 }
61
62 public int containsAt(int e) {
63 return this.vec.containsAt(e);
64 }
65
66 public int containsAt(int e, int from) {
67 return this.vec.containsAt(e, from);
68 }
69
70 public void copyTo(IVecInt copy) {
71 this.vec.copyTo(copy);
72 }
73
74 public void copyTo(int[] is) {
75 this.vec.copyTo(is);
76 }
77
78 public int delete(int i) {
79 throw new UnsupportedOperationException();
80 }
81
82 public void ensure(int nsize) {
83 throw new UnsupportedOperationException();
84 }
85
86 public int get(int i) {
87 return this.vec.get(i);
88 }
89
90 public void growTo(int newsize, int pad) {
91 throw new UnsupportedOperationException();
92 }
93
94 public void insertFirst(int elem) {
95 throw new UnsupportedOperationException();
96 }
97
98 public boolean isEmpty() {
99 return this.vec.isEmpty();
100 }
101
102 public IteratorInt iterator() {
103 return this.vec.iterator();
104 }
105
106 public int last() {
107 return this.vec.last();
108 }
109
110 public void moveTo(IVecInt dest) {
111 throw new UnsupportedOperationException();
112 }
113
114 public void moveTo(int[] dest) {
115 throw new UnsupportedOperationException();
116 }
117
118 public void moveTo(int dest, int source) {
119 throw new UnsupportedOperationException();
120 }
121
122 public void moveTo2(IVecInt dest) {
123 throw new UnsupportedOperationException();
124 }
125
126 public IVecInt pop() {
127 throw new UnsupportedOperationException();
128 }
129
130 public IVecInt push(int elem) {
131 throw new UnsupportedOperationException();
132 }
133
134 public void remove(int elem) {
135 throw new UnsupportedOperationException();
136 }
137
138 public void set(int i, int o) {
139 throw new UnsupportedOperationException();
140 }
141
142 public void shrink(int nofelems) {
143 throw new UnsupportedOperationException();
144 }
145
146 public void shrinkTo(int newsize) {
147 throw new UnsupportedOperationException();
148 }
149
150 public int size() {
151 return this.vec.size();
152 }
153
154 public void sort() {
155 throw new UnsupportedOperationException();
156 }
157
158 public void sortUnique() {
159 throw new UnsupportedOperationException();
160 }
161
162 public int unsafeGet(int eleem) {
163 return this.vec.unsafeGet(eleem);
164 }
165
166 public void unsafePush(int elem) {
167 throw new UnsupportedOperationException();
168 }
169
170
171
172
173 public int[] toArray() {
174 throw new UnsupportedOperationException();
175 }
176
177
178
179
180 public int indexOf(int e) {
181 return this.vec.indexOf(e);
182 }
183
184 @Override
185 public String toString() {
186 return this.vec.toString();
187 }
188
189 public void moveTo(int sourceStartingIndex, int[] dest) {
190 throw new UnsupportedOperationException();
191 }
192
193
194
195
196
197
198 public VecInt[] subset(int cardinal) {
199 return null;
200 }
201
202 }