package kotlin.collections; import java.io.Serializable; import java.util.Collection; import java.util.Iterator; import java.util.Set; import kotlin.jvm.internal.CollectionToArray; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.markers.KMappedMarker; /* loaded from: classes5.dex */ public final class EmptySet implements Set, Serializable, KMappedMarker { public static final EmptySet INSTANCE = new EmptySet(); private static final long serialVersionUID = 3406603774387020532L; private final Object readResolve() { return INSTANCE; } @Override // java.util.Set, java.util.Collection public /* bridge */ /* synthetic */ boolean add(Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Set, java.util.Collection public boolean addAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Set, java.util.Collection public void clear() { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } public boolean contains(Void element) { Intrinsics.checkNotNullParameter(element, "element"); return false; } public int getSize() { return 0; } @Override // java.util.Set, java.util.Collection public int hashCode() { return 0; } @Override // java.util.Set, java.util.Collection public boolean isEmpty() { return true; } @Override // java.util.Set, java.util.Collection public boolean remove(Object obj) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Set, java.util.Collection public boolean removeAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Set, java.util.Collection public boolean retainAll(Collection collection) { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } @Override // java.util.Set, java.util.Collection public Object[] toArray() { return CollectionToArray.toArray(this); } @Override // java.util.Set, java.util.Collection public Object[] toArray(Object[] array) { Intrinsics.checkNotNullParameter(array, "array"); return CollectionToArray.toArray(this, array); } public String toString() { return "[]"; } @Override // java.util.Set, java.util.Collection public final /* bridge */ boolean contains(Object obj) { if (obj instanceof Void) { return contains((Void) obj); } return false; } @Override // java.util.Set, java.util.Collection public final /* bridge */ int size() { return getSize(); } @Override // java.util.Set, java.util.Collection public boolean equals(Object obj) { return (obj instanceof Set) && ((Set) obj).isEmpty(); } @Override // java.util.Set, java.util.Collection public boolean containsAll(Collection elements) { Intrinsics.checkNotNullParameter(elements, "elements"); return elements.isEmpty(); } @Override // java.util.Set, java.util.Collection, java.lang.Iterable public Iterator iterator() { return EmptyIterator.INSTANCE; } }