pv.java 2.43 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.UnmodifiableIterator;
import java.util.List;
import javax.annotation.Nullable;

@GwtCompatible(emulated=true, serializable=true)
public final class pv<E>
  extends ImmutableList<E>
{
  final transient E a;
  
  public pv(E paramE)
  {
    this.a = Preconditions.checkNotNull(paramE);
  }
  
  final int a(Object[] paramArrayOfObject, int paramInt)
  {
    paramArrayOfObject[paramInt] = this.a;
    return paramInt + 1;
  }
  
  final boolean a()
  {
    return false;
  }
  
  public final boolean contains(@Nullable Object paramObject)
  {
    return this.a.equals(paramObject);
  }
  
  public final boolean equals(@Nullable Object paramObject)
  {
    if (paramObject == this) {}
    do
    {
      return true;
      if (!(paramObject instanceof List)) {
        break;
      }
      paramObject = (List)paramObject;
    } while ((((List)paramObject).size() == 1) && (this.a.equals(((List)paramObject).get(0))));
    return false;
    return false;
  }
  
  public final E get(int paramInt)
  {
    Preconditions.checkElementIndex(paramInt, 1);
    return (E)this.a;
  }
  
  public final int hashCode()
  {
    return this.a.hashCode() + 31;
  }
  
  public final int indexOf(@Nullable Object paramObject)
  {
    if (this.a.equals(paramObject)) {
      return 0;
    }
    return -1;
  }
  
  public final boolean isEmpty()
  {
    return false;
  }
  
  public final UnmodifiableIterator<E> iterator()
  {
    return Iterators.singletonIterator(this.a);
  }
  
  public final int lastIndexOf(@Nullable Object paramObject)
  {
    return indexOf(paramObject);
  }
  
  public final ImmutableList<E> reverse()
  {
    return this;
  }
  
  public final int size()
  {
    return 1;
  }
  
  public final ImmutableList<E> subList(int paramInt1, int paramInt2)
  {
    Preconditions.checkPositionIndexes(paramInt1, paramInt2, 1);
    Object localObject = this;
    if (paramInt1 == paramInt2) {
      localObject = ImmutableList.of();
    }
    return (ImmutableList<E>)localObject;
  }
  
  public final String toString()
  {
    String str = this.a.toString();
    return str.length() + 2 + '[' + str + ']';
  }
}


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