what-the-bank/sources/com/google/common/collect/DescendingImmutableSortedMu...

106 lines
4.6 KiB
Java

package com.google.common.collect;
import com.google.common.collect.Multiset;
import java.util.NavigableSet;
import java.util.Set;
import java.util.SortedSet;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class DescendingImmutableSortedMultiset<E> extends ImmutableSortedMultiset<E> {
private final transient ImmutableSortedMultiset<E> forward;
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.SortedMultiset
public final /* bridge */ /* synthetic */ SortedMultiset descendingMultiset() {
return descendingMultiset();
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.ImmutableMultiset, com.google.common.collect.Multiset
public final /* bridge */ /* synthetic */ ImmutableSet elementSet() {
return elementSet();
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.ImmutableMultiset, com.google.common.collect.Multiset
public final /* bridge */ /* synthetic */ NavigableSet elementSet() {
return elementSet();
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.ImmutableMultiset, com.google.common.collect.Multiset
public final /* bridge */ /* synthetic */ Set elementSet() {
return elementSet();
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.ImmutableMultiset, com.google.common.collect.Multiset
public final /* bridge */ /* synthetic */ SortedSet elementSet() {
return elementSet();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.SortedMultiset
public final /* bridge */ /* synthetic */ SortedMultiset headMultiset(Object obj, BoundType boundType) {
return headMultiset((DescendingImmutableSortedMultiset<E>) obj, boundType);
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.SortedMultiset
public final /* bridge */ /* synthetic */ SortedMultiset tailMultiset(Object obj, BoundType boundType) {
return tailMultiset((DescendingImmutableSortedMultiset<E>) obj, boundType);
}
/* JADX INFO: Access modifiers changed from: package-private */
public DescendingImmutableSortedMultiset(ImmutableSortedMultiset<E> immutableSortedMultiset) {
this.forward = immutableSortedMultiset;
}
@Override // com.google.common.collect.Multiset
public final int count(Object obj) {
return this.forward.count(obj);
}
@Override // com.google.common.collect.SortedMultiset
public final Multiset.Entry<E> firstEntry() {
return this.forward.lastEntry();
}
@Override // com.google.common.collect.SortedMultiset
public final Multiset.Entry<E> lastEntry() {
return this.forward.firstEntry();
}
@Override // java.util.AbstractCollection, java.util.Collection, com.google.common.collect.Multiset
public final int size() {
return this.forward.size();
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.ImmutableMultiset, com.google.common.collect.Multiset
public final ImmutableSortedSet<E> elementSet() {
return this.forward.elementSet().descendingSet();
}
@Override // com.google.common.collect.ImmutableMultiset
final Multiset.Entry<E> getEntry(int i) {
return this.forward.entrySet().asList().reverse().get(i);
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.SortedMultiset
public final ImmutableSortedMultiset<E> headMultiset(E e, BoundType boundType) {
return this.forward.tailMultiset((ImmutableSortedMultiset<E>) e, boundType).descendingMultiset();
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.SortedMultiset
public final ImmutableSortedMultiset<E> tailMultiset(E e, BoundType boundType) {
return this.forward.headMultiset((ImmutableSortedMultiset<E>) e, boundType).descendingMultiset();
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.common.collect.ImmutableCollection
public final boolean isPartialView() {
return this.forward.isPartialView();
}
@Override // com.google.common.collect.ImmutableSortedMultiset, com.google.common.collect.SortedMultiset
public final ImmutableSortedMultiset<E> descendingMultiset() {
return this.forward;
}
}