package com.google.common.collect; import java.io.Serializable; import java.lang.Comparable; import java.util.NoSuchElementException; import java.util.Set; import javax.annotation.CheckForNull; import okhttp3.HttpUrl; /* JADX INFO: Access modifiers changed from: package-private */ @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ public final class EmptyContiguousSet extends ContiguousSet { @Override // com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection, java.util.Set public boolean contains(@CheckForNull Object obj) { return false; } @Override // com.google.common.collect.ImmutableSet, java.util.Collection, java.util.Set public int hashCode() { return 0; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet public ContiguousSet headSetImpl(C c, boolean z) { return this; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableSortedSet public int indexOf(@CheckForNull Object obj) { return -1; } @Override // com.google.common.collect.ContiguousSet public ContiguousSet intersection(ContiguousSet contiguousSet) { return this; } @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set public boolean isEmpty() { return true; } @Override // com.google.common.collect.ImmutableSet boolean isHashCodeFast() { return true; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableCollection public boolean isPartialView() { return false; } @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set public int size() { return 0; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet public ContiguousSet subSetImpl(C c, boolean z, C c2, boolean z2) { return this; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet public ContiguousSet tailSetImpl(C c, boolean z) { return this; } @Override // com.google.common.collect.ContiguousSet, java.util.AbstractCollection public String toString() { return HttpUrl.PATH_SEGMENT_ENCODE_SET_URI; } /* JADX INFO: Access modifiers changed from: package-private */ public EmptyContiguousSet(DiscreteDomain discreteDomain) { super(discreteDomain); } @Override // com.google.common.collect.ImmutableSortedSet, java.util.SortedSet public C first() { throw new NoSuchElementException(); } @Override // com.google.common.collect.ImmutableSortedSet, java.util.SortedSet public C last() { throw new NoSuchElementException(); } @Override // com.google.common.collect.ContiguousSet public Range range() { throw new NoSuchElementException(); } @Override // com.google.common.collect.ContiguousSet public Range range(BoundType boundType, BoundType boundType2) { throw new NoSuchElementException(); } @Override // com.google.common.collect.ImmutableSortedSet, com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set, java.util.NavigableSet, com.google.common.collect.SortedIterable public UnmodifiableIterator iterator() { return Iterators.emptyIterator(); } @Override // com.google.common.collect.ImmutableSortedSet, java.util.NavigableSet public UnmodifiableIterator descendingIterator() { return Iterators.emptyIterator(); } @Override // com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection public ImmutableList asList() { return ImmutableList.of(); } @Override // com.google.common.collect.ImmutableSet, java.util.Collection, java.util.Set public boolean equals(@CheckForNull Object obj) { if (obj instanceof Set) { return ((Set) obj).isEmpty(); } return false; } /* loaded from: classes3.dex */ private static final class SerializedForm implements Serializable { private static final long serialVersionUID = 0; private final DiscreteDomain domain; private SerializedForm(DiscreteDomain discreteDomain) { this.domain = discreteDomain; } private Object readResolve() { return new EmptyContiguousSet(this.domain); } } @Override // com.google.common.collect.ImmutableSortedSet, com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection Object writeReplace() { return new SerializedForm(this.domain); } @Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet ImmutableSortedSet createDescendingSet() { return ImmutableSortedSet.emptySet(Ordering.natural().reverse()); } }