package com.google.common.collect; import com.google.common.base.Objects; import java.util.Collection; import java.util.Iterator; /* loaded from: classes.dex */ public abstract class ForwardingCollection extends ForwardingObject implements Collection { protected ForwardingCollection() { } public boolean add(E e) { return delegate().add(e); } public boolean addAll(Collection collection) { return delegate().addAll(collection); } public void clear() { delegate().clear(); } public boolean contains(Object obj) { return delegate().contains(obj); } public boolean containsAll(Collection collection) { return delegate().containsAll(collection); } @Override // com.google.common.collect.ForwardingObject protected abstract /* bridge */ /* synthetic */ Object delegate(); @Override // com.google.common.collect.ForwardingObject protected abstract Collection delegate(); @Override // java.util.Collection public boolean isEmpty() { return delegate().isEmpty(); } public Iterator iterator() { return delegate().iterator(); } public boolean remove(Object obj) { return delegate().remove(obj); } public boolean removeAll(Collection collection) { return delegate().removeAll(collection); } public boolean retainAll(Collection collection) { return delegate().retainAll(collection); } @Override // java.util.Collection public int size() { return delegate().size(); } protected boolean standardAddAll(Collection collection) { return Iterators.a(this, collection.iterator()); } protected void standardClear() { Iterators.b(iterator()); } protected boolean standardContains(Object obj) { return Iterators.a((Iterator) iterator(), obj); } protected boolean standardContainsAll(Collection collection) { return Collections2.a((Collection) this, collection); } protected boolean standardIsEmpty() { return !iterator().hasNext(); } protected boolean standardRemove(Object obj) { Iterator it = iterator(); while (it.hasNext()) { if (Objects.a(it.next(), obj)) { it.remove(); return true; } } return false; } protected boolean standardRemoveAll(Collection collection) { return Iterators.a((Iterator) iterator(), collection); } protected boolean standardRetainAll(Collection collection) { return Iterators.b((Iterator) iterator(), collection); } protected Object[] standardToArray() { return toArray(new Object[size()]); } protected String standardToString() { return Collections2.a((Collection) this); } public Object[] toArray() { return delegate().toArray(); } public T[] toArray(T[] tArr) { return (T[]) delegate().toArray(tArr); } protected T[] standardToArray(T[] tArr) { return (T[]) ObjectArrays.a((Collection) this, (Object[]) tArr); } }