package com.google.common.collect;

import java.util.Comparator;
import javax.annotation.Nullable;

final class ImmutableSortedAsList<E> extends RegularImmutableAsList<E>
  implements SortedIterable<E>
{
  ImmutableSortedAsList(ImmutableSortedSet<E> paramImmutableSortedSet, ImmutableList<E> paramImmutableList)
  {
    super(paramImmutableSortedSet, paramImmutableList);
  }

  public Comparator<? super E> comparator()
  {
    return delegateCollection().comparator();
  }

  public boolean contains(Object paramObject)
  {
    return indexOf(paramObject) >= 0;
  }

  ImmutableSortedSet<E> delegateCollection()
  {
    return (ImmutableSortedSet)super.delegateCollection();
  }

  public int indexOf(@Nullable Object paramObject)
  {
    int i = delegateCollection().indexOf(paramObject);
    if ((i >= 0) && (get(i).equals(paramObject)))
      return i;
    return -1;
  }

  public int lastIndexOf(@Nullable Object paramObject)
  {
    return indexOf(paramObject);
  }

  ImmutableList<E> subListUnchecked(int paramInt1, int paramInt2)
  {
    return new RegularImmutableSortedSet(super.subListUnchecked(paramInt1, paramInt2), comparator()).asList();
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.common.collect.ImmutableSortedAsList
 * JD-Core Version:    0.6.2
 */