Home | History | Annotate | Download | only in protobuf

Lines Matching defs:list

10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
38 import java.util.List;
49 * and at least one of the threads modifies the list structurally, it
54 * synchronizing on some object that naturally encapsulates the list.
60 * will not result in any corruption of the list or change in behavior other
80 private final List<Object> list;
91 list = new ArrayList<Object>(from.size());
95 public LazyStringArrayList(List<String> from) {
99 private LazyStringArrayList(ArrayList<Object> list) {
100 this.list = list;
109 newList.addAll(list);
115 Object o = list.get(index);
122 list.set(index, s);
129 list.set(index, s);
137 return list.size();
143 Object o = list.set(index, s);
150 list.add(index, element);
156 list.add(index, element);
162 list.add(index, element);
182 boolean ret = list.addAll(index, collection);
190 boolean ret = list.addAll(values);
198 boolean ret = list.addAll(c);
206 Object o = list.remove(index);
214 list.clear();
221 list.add(element);
228 list.add(element);
234 return list.get(index);
239 Object o = list.get(index);
242 list.set(index, b);
249 Object o = list.get(index);
252 list.set(index, b);
264 return list.set(index, s);
274 return list.set(index, s);
308 public List<?> getUnderlyingElements() {
309 return Collections.unmodifiableList(list);
320 list.add(Arrays.copyOf(b, b.length));
322 list.add(o);
329 private final LazyStringArrayList list;
331 ByteArrayListView(LazyStringArrayList list) {
332 this.list = list;
337 return list.getByteArray(index);
342 return list.size();
347 Object o = list.setAndReturn(index, s);
354 list.add(index, s);
360 Object o = list.remove(index);
367 public List<byte[]> asByteArrayList() {
373 private final LazyStringArrayList list;
375 ByteStringListView(LazyStringArrayList list) {
376 this.list = list;
381 return list.getByteString(index);
386 return list.size();
391 Object o = list.setAndReturn(index, s);
398 list.add(index, s);
404 Object o = list.remove(index);
411 public List<ByteString> asByteStringList() {