ParcelableCompat.java 1.15 KB
package android.support.v4.os;

import android.os.Build.VERSION;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import dr;

public final class ParcelableCompat
{
  public static <T> Parcelable.Creator<T> newCreator(ParcelableCompatCreatorCallbacks<T> paramParcelableCompatCreatorCallbacks)
  {
    if (Build.VERSION.SDK_INT >= 13) {
      return new dr(paramParcelableCompatCreatorCallbacks);
    }
    return new a(paramParcelableCompatCreatorCallbacks);
  }
  
  static final class a<T>
    implements Parcelable.Creator<T>
  {
    final ParcelableCompatCreatorCallbacks<T> a;
    
    public a(ParcelableCompatCreatorCallbacks<T> paramParcelableCompatCreatorCallbacks)
    {
      this.a = paramParcelableCompatCreatorCallbacks;
    }
    
    public final T createFromParcel(Parcel paramParcel)
    {
      return (T)this.a.createFromParcel(paramParcel, null);
    }
    
    public final T[] newArray(int paramInt)
    {
      return this.a.newArray(paramInt);
    }
  }
}


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