qb.java 3.05 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.collect.BoundType;
import com.google.common.collect.Multisets.b;
import com.google.common.collect.SortedMultiset;
import java.util.Comparator;
import java.util.Iterator;
import java.util.NavigableSet;
import java.util.SortedSet;

@GwtCompatible(emulated=true)
public final class qb
{
  static class a<E>
    extends Multisets.b<E>
    implements SortedSet<E>
  {
    final SortedMultiset<E> b;
    
    a(SortedMultiset<E> paramSortedMultiset)
    {
      this.b = paramSortedMultiset;
    }
    
    public Comparator<? super E> comparator()
    {
      return this.b.comparator();
    }
    
    public E first()
    {
      return (E)qb.a(this.b.firstEntry());
    }
    
    public SortedSet<E> headSet(E paramE)
    {
      return this.b.headMultiset(paramE, BoundType.OPEN).elementSet();
    }
    
    public E last()
    {
      return (E)qb.a(this.b.lastEntry());
    }
    
    public SortedSet<E> subSet(E paramE1, E paramE2)
    {
      return this.b.subMultiset(paramE1, BoundType.CLOSED, paramE2, BoundType.OPEN).elementSet();
    }
    
    public SortedSet<E> tailSet(E paramE)
    {
      return this.b.tailMultiset(paramE, BoundType.CLOSED).elementSet();
    }
  }
  
  @GwtIncompatible("Navigable")
  public static class b<E>
    extends qb.a<E>
    implements NavigableSet<E>
  {
    protected b(SortedMultiset<E> paramSortedMultiset)
    {
      super();
    }
    
    public E ceiling(E paramE)
    {
      return (E)qb.b(this.b.tailMultiset(paramE, BoundType.CLOSED).firstEntry());
    }
    
    public Iterator<E> descendingIterator()
    {
      return descendingSet().iterator();
    }
    
    public NavigableSet<E> descendingSet()
    {
      return new b(this.b.descendingMultiset());
    }
    
    public E floor(E paramE)
    {
      return (E)qb.b(this.b.headMultiset(paramE, BoundType.CLOSED).lastEntry());
    }
    
    public NavigableSet<E> headSet(E paramE, boolean paramBoolean)
    {
      return new b(this.b.headMultiset(paramE, BoundType.a(paramBoolean)));
    }
    
    public E higher(E paramE)
    {
      return (E)qb.b(this.b.tailMultiset(paramE, BoundType.OPEN).firstEntry());
    }
    
    public E lower(E paramE)
    {
      return (E)qb.b(this.b.headMultiset(paramE, BoundType.OPEN).lastEntry());
    }
    
    public E pollFirst()
    {
      return (E)qb.b(this.b.pollFirstEntry());
    }
    
    public E pollLast()
    {
      return (E)qb.b(this.b.pollLastEntry());
    }
    
    public NavigableSet<E> subSet(E paramE1, boolean paramBoolean1, E paramE2, boolean paramBoolean2)
    {
      return new b(this.b.subMultiset(paramE1, BoundType.a(paramBoolean1), paramE2, BoundType.a(paramBoolean2)));
    }
    
    public NavigableSet<E> tailSet(E paramE, boolean paramBoolean)
    {
      return new b(this.b.tailMultiset(paramE, BoundType.a(paramBoolean)));
    }
  }
}


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