try new-method
This commit is contained in:
parent
78237d9c80
commit
52b4651f1a
3812 changed files with 228702 additions and 223704 deletions
63
src/com/google/common/collect/AbstractSortedSetMultimap.java
Normal file
63
src/com/google/common/collect/AbstractSortedSetMultimap.java
Normal file
|
@ -0,0 +1,63 @@
|
|||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package com.google.common.collect;
|
||||
|
||||
import com.google.common.annotations.GwtCompatible;
|
||||
import com.google.common.collect.AbstractSetMultimap;
|
||||
import com.google.common.collect.ImmutableSortedSet;
|
||||
import com.google.common.collect.SortedSetMultimap;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Map;
|
||||
import java.util.SortedSet;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@GwtCompatible
|
||||
abstract class AbstractSortedSetMultimap<K, V>
|
||||
extends AbstractSetMultimap<K, V>
|
||||
implements SortedSetMultimap<K, V> {
|
||||
private static final long serialVersionUID = 430848587173315748L;
|
||||
|
||||
protected AbstractSortedSetMultimap(Map<K, Collection<V>> map) {
|
||||
super(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
abstract SortedSet<V> createCollection();
|
||||
|
||||
@Override
|
||||
SortedSet<V> createUnmodifiableEmptyCollection() {
|
||||
Comparator comparator = this.valueComparator();
|
||||
if (comparator == null) {
|
||||
return Collections.unmodifiableSortedSet(this.createCollection());
|
||||
}
|
||||
return ImmutableSortedSet.emptySet(this.valueComparator());
|
||||
}
|
||||
|
||||
@Override
|
||||
public SortedSet<V> get(@Nullable K key) {
|
||||
return (SortedSet)super.get((Object)key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SortedSet<V> removeAll(@Nullable Object key) {
|
||||
return (SortedSet)super.removeAll(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SortedSet<V> replaceValues(@Nullable K key, Iterable<? extends V> values) {
|
||||
return (SortedSet)super.replaceValues((Object)key, (Iterable)values);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<K, Collection<V>> asMap() {
|
||||
return super.asMap();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<V> values() {
|
||||
return super.values();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue