50 lines
1.7 KiB
Java
50 lines
1.7 KiB
Java
package com.google.android.gms.maps.model;
|
|
|
|
import android.os.IBinder;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
|
|
|
/* JADX INFO: compiled from: com.google.android.gms:play-services-maps@@19.0.0 */
|
|
/* JADX INFO: loaded from: classes2.dex */
|
|
public class StampStyle extends AbstractSafeParcelable {
|
|
public static final Parcelable.Creator<StampStyle> CREATOR = new zzw();
|
|
protected final BitmapDescriptor zza;
|
|
|
|
/* JADX INFO: compiled from: com.google.android.gms:play-services-maps@@19.0.0 */
|
|
static abstract class Builder<T extends Builder<T>> {
|
|
BitmapDescriptor zza;
|
|
|
|
Builder() {
|
|
}
|
|
|
|
protected abstract T self();
|
|
|
|
public T stamp(BitmapDescriptor bitmapDescriptor) {
|
|
this.zza = bitmapDescriptor;
|
|
return (T) self();
|
|
}
|
|
}
|
|
|
|
StampStyle(IBinder iBinder) {
|
|
this.zza = new BitmapDescriptor(IObjectWrapper.Stub.asInterface(iBinder));
|
|
}
|
|
|
|
public BitmapDescriptor getStamp() {
|
|
return this.zza;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
BitmapDescriptor bitmapDescriptor = this.zza;
|
|
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeIBinder(parcel, 2, bitmapDescriptor.zza().asBinder(), false);
|
|
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
|
}
|
|
|
|
protected StampStyle(BitmapDescriptor bitmapDescriptor) {
|
|
this.zza = bitmapDescriptor;
|
|
}
|
|
} |