@Override public int size() { return list.size(); }
@Override public int size() { return list.size(); }
@Override public LazyStringArrayList mutableCopyWithCapacity(int capacity) { if (capacity < size()) { throw new IllegalArgumentException(); } ArrayList<Object> newList = new ArrayList<Object>(capacity); newList.addAll(list); return new LazyStringArrayList(newList); }
@Override public boolean addAll(Collection<? extends String> c) { // The default implementation of AbstractCollection.addAll(Collection) // delegates to add(Object). This implementation instead delegates to // addAll(int, Collection), which makes a special case for Collections // which are instances of LazyStringList. return addAll(size(), c); }
@Override public boolean addAll(Collection<? extends String> c) { // The default implementation of AbstractCollection.addAll(Collection) // delegates to add(Object). This implementation instead delegates to // addAll(int, Collection), which makes a special case for Collections // which are instances of LazyStringList. return addAll(size(), c); }
@Override public int size() { return list.size(); }
@Override public int size() { return list.size(); }
@Override public int size() { return list.size(); }
@Override public int size() { return list.size(); }
@Override public LazyStringArrayList mutableCopyWithCapacity(int capacity) { if (capacity < size()) { throw new IllegalArgumentException(); } ArrayList<Object> newList = new ArrayList<Object>(capacity); newList.addAll(list); return new LazyStringArrayList(newList); }
@Override public LazyStringArrayList mutableCopyWithCapacity(int capacity) { if (capacity < size()) { throw new IllegalArgumentException(); } ArrayList<Object> newList = new ArrayList<Object>(capacity); newList.addAll(list); return new LazyStringArrayList(newList); }
@Override public boolean addAll(Collection<? extends String> c) { // The default implementation of AbstractCollection.addAll(Collection) // delegates to add(Object). This implementation instead delegates to // addAll(int, Collection), which makes a special case for Collections // which are instances of LazyStringList. return addAll(size(), c); }
@Override public boolean addAll(Collection<? extends String> c) { // The default implementation of AbstractCollection.addAll(Collection) // delegates to add(Object). This implementation instead delegates to // addAll(int, Collection), which makes a special case for Collections // which are instances of LazyStringList. return addAll(size(), c); }
@Override public boolean addAll(Collection<? extends String> c) { // The default implementation of AbstractCollection.addAll(Collection) // delegates to add(Object). This implementation instead delegates to // addAll(int, Collection), which makes a special case for Collections // which are instances of LazyStringList. return addAll(size(), c); }