pj.java 2.27 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterators;
import com.google.common.collect.UnmodifiableListIterator;
import javax.annotation.Nullable;

@GwtCompatible(emulated=true, serializable=true)
public final class pj<E>
  extends ImmutableList<E>
{
  private final transient int a;
  private final transient int b;
  private final transient Object[] c;
  
  public pj(Object[] paramArrayOfObject)
  {
    this(paramArrayOfObject, 0, paramArrayOfObject.length);
  }
  
  private pj(Object[] paramArrayOfObject, int paramInt1, int paramInt2)
  {
    this.a = paramInt1;
    this.b = paramInt2;
    this.c = paramArrayOfObject;
  }
  
  final int a(Object[] paramArrayOfObject, int paramInt)
  {
    System.arraycopy(this.c, this.a, paramArrayOfObject, paramInt, this.b);
    return this.b + paramInt;
  }
  
  final ImmutableList<E> a(int paramInt1, int paramInt2)
  {
    return new pj(this.c, this.a + paramInt1, paramInt2 - paramInt1);
  }
  
  final boolean a()
  {
    return this.b != this.c.length;
  }
  
  public final E get(int paramInt)
  {
    Preconditions.checkElementIndex(paramInt, this.b);
    return (E)this.c[(this.a + paramInt)];
  }
  
  public final int indexOf(@Nullable Object paramObject)
  {
    int j;
    if (paramObject == null)
    {
      j = -1;
      return j;
    }
    int i = 0;
    for (;;)
    {
      if (i >= this.b) {
        break label45;
      }
      j = i;
      if (this.c[(this.a + i)].equals(paramObject)) {
        break;
      }
      i += 1;
    }
    label45:
    return -1;
  }
  
  public final int lastIndexOf(@Nullable Object paramObject)
  {
    if (paramObject == null) {}
    for (;;)
    {
      return -1;
      int i = this.b - 1;
      while (i >= 0)
      {
        if (this.c[(this.a + i)].equals(paramObject)) {
          return i;
        }
        i -= 1;
      }
    }
  }
  
  public final UnmodifiableListIterator<E> listIterator(int paramInt)
  {
    return Iterators.a(this.c, this.a, this.b, paramInt);
  }
  
  public final int size()
  {
    return this.b;
  }
}


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