mu$d.java 3.99 KB
import com.google.common.annotations.GwtIncompatible;
import com.google.common.collect.Maps;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.NavigableMap;
import java.util.NavigableSet;
import java.util.Set;
import java.util.SortedMap;

@GwtIncompatible("NavigableAsMap")
public final class mu$d
  extends mu<K, V>.g
  implements NavigableMap<K, Collection<V>>
{
  public mu$d(NavigableMap<K, Collection<V>> paramNavigableMap)
  {
    super(paramNavigableMap, localSortedMap);
  }
  
  private Map.Entry<K, Collection<V>> a(Iterator<Map.Entry<K, Collection<V>>> paramIterator)
  {
    if (!paramIterator.hasNext()) {
      return null;
    }
    Map.Entry localEntry = (Map.Entry)paramIterator.next();
    Collection localCollection = this.c.b();
    localCollection.addAll((Collection)localEntry.getValue());
    paramIterator.remove();
    return Maps.immutableEntry(localEntry.getKey(), this.c.a(localCollection));
  }
  
  private NavigableSet<K> f()
  {
    return new mu.e(this.c, (NavigableMap)super.d());
  }
  
  public final Map.Entry<K, Collection<V>> ceilingEntry(K paramK)
  {
    paramK = ((NavigableMap)super.d()).ceilingEntry(paramK);
    if (paramK == null) {
      return null;
    }
    return a(paramK);
  }
  
  public final K ceilingKey(K paramK)
  {
    return (K)((NavigableMap)super.d()).ceilingKey(paramK);
  }
  
  public final NavigableSet<K> descendingKeySet()
  {
    return descendingMap().navigableKeySet();
  }
  
  public final NavigableMap<K, Collection<V>> descendingMap()
  {
    return new d(this.c, ((NavigableMap)super.d()).descendingMap());
  }
  
  public final Map.Entry<K, Collection<V>> firstEntry()
  {
    Map.Entry localEntry = ((NavigableMap)super.d()).firstEntry();
    if (localEntry == null) {
      return null;
    }
    return a(localEntry);
  }
  
  public final Map.Entry<K, Collection<V>> floorEntry(K paramK)
  {
    paramK = ((NavigableMap)super.d()).floorEntry(paramK);
    if (paramK == null) {
      return null;
    }
    return a(paramK);
  }
  
  public final K floorKey(K paramK)
  {
    return (K)((NavigableMap)super.d()).floorKey(paramK);
  }
  
  public final NavigableMap<K, Collection<V>> headMap(K paramK, boolean paramBoolean)
  {
    return new d(this.c, ((NavigableMap)super.d()).headMap(paramK, paramBoolean));
  }
  
  public final Map.Entry<K, Collection<V>> higherEntry(K paramK)
  {
    paramK = ((NavigableMap)super.d()).higherEntry(paramK);
    if (paramK == null) {
      return null;
    }
    return a(paramK);
  }
  
  public final K higherKey(K paramK)
  {
    return (K)((NavigableMap)super.d()).higherKey(paramK);
  }
  
  public final Map.Entry<K, Collection<V>> lastEntry()
  {
    Map.Entry localEntry = ((NavigableMap)super.d()).lastEntry();
    if (localEntry == null) {
      return null;
    }
    return a(localEntry);
  }
  
  public final Map.Entry<K, Collection<V>> lowerEntry(K paramK)
  {
    paramK = ((NavigableMap)super.d()).lowerEntry(paramK);
    if (paramK == null) {
      return null;
    }
    return a(paramK);
  }
  
  public final K lowerKey(K paramK)
  {
    return (K)((NavigableMap)super.d()).lowerKey(paramK);
  }
  
  public final NavigableSet<K> navigableKeySet()
  {
    return (NavigableSet)super.c();
  }
  
  public final Map.Entry<K, Collection<V>> pollFirstEntry()
  {
    return a(entrySet().iterator());
  }
  
  public final Map.Entry<K, Collection<V>> pollLastEntry()
  {
    return a(descendingMap().entrySet().iterator());
  }
  
  public final NavigableMap<K, Collection<V>> subMap(K paramK1, boolean paramBoolean1, K paramK2, boolean paramBoolean2)
  {
    return new d(this.c, ((NavigableMap)super.d()).subMap(paramK1, paramBoolean1, paramK2, paramBoolean2));
  }
  
  public final NavigableMap<K, Collection<V>> tailMap(K paramK, boolean paramBoolean)
  {
    return new d(this.c, ((NavigableMap)super.d()).tailMap(paramK, paramBoolean));
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/mu$d.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */