package com.google.common.collect; import com.google.common.collect.Multiset; import com.google.common.collect.Multisets; import java.util.Comparator; import java.util.NavigableSet; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class UnmodifiableSortedMultiset extends Multisets.UnmodifiableMultiset implements SortedMultiset { private static final long serialVersionUID = 0; private transient UnmodifiableSortedMultiset descendingMultiset; /* JADX INFO: Access modifiers changed from: package-private */ public UnmodifiableSortedMultiset(SortedMultiset sortedMultiset) { super(sortedMultiset); } /* JADX INFO: Access modifiers changed from: protected */ @Override // com.google.common.collect.Multisets.UnmodifiableMultiset, com.google.common.collect.ForwardingMultiset, com.google.common.collect.ForwardingCollection, com.google.common.collect.ForwardingObject public final SortedMultiset delegate() { return (SortedMultiset) super.delegate(); } @Override // com.google.common.collect.SortedMultiset, com.google.common.collect.SortedIterable public final Comparator comparator() { return delegate().comparator(); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.Multisets.UnmodifiableMultiset public final NavigableSet createElementSet() { return Sets.unmodifiableNavigableSet(delegate().elementSet()); } @Override // com.google.common.collect.Multisets.UnmodifiableMultiset, com.google.common.collect.ForwardingMultiset, com.google.common.collect.Multiset public final NavigableSet elementSet() { return (NavigableSet) super.elementSet(); } @Override // com.google.common.collect.SortedMultiset public final SortedMultiset descendingMultiset() { UnmodifiableSortedMultiset unmodifiableSortedMultiset = this.descendingMultiset; if (unmodifiableSortedMultiset != null) { return unmodifiableSortedMultiset; } UnmodifiableSortedMultiset unmodifiableSortedMultiset2 = new UnmodifiableSortedMultiset<>(delegate().descendingMultiset()); unmodifiableSortedMultiset2.descendingMultiset = this; this.descendingMultiset = unmodifiableSortedMultiset2; return unmodifiableSortedMultiset2; } @Override // com.google.common.collect.SortedMultiset public final Multiset.Entry firstEntry() { return delegate().firstEntry(); } @Override // com.google.common.collect.SortedMultiset public final Multiset.Entry lastEntry() { return delegate().lastEntry(); } @Override // com.google.common.collect.SortedMultiset public final Multiset.Entry pollFirstEntry() { throw new UnsupportedOperationException(); } @Override // com.google.common.collect.SortedMultiset public final Multiset.Entry pollLastEntry() { throw new UnsupportedOperationException(); } @Override // com.google.common.collect.SortedMultiset public final SortedMultiset headMultiset(E e, BoundType boundType) { return Multisets.unmodifiableSortedMultiset(delegate().headMultiset(e, boundType)); } @Override // com.google.common.collect.SortedMultiset public final SortedMultiset subMultiset(E e, BoundType boundType, E e2, BoundType boundType2) { return Multisets.unmodifiableSortedMultiset(delegate().subMultiset(e, boundType, e2, boundType2)); } @Override // com.google.common.collect.SortedMultiset public final SortedMultiset tailMultiset(E e, BoundType boundType) { return Multisets.unmodifiableSortedMultiset(delegate().tailMultiset(e, boundType)); } }