mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 03:47:18 +01:00
67 lines
1.9 KiB
Java
67 lines
1.9 KiB
Java
package com.google.mlkit.vision.barcode;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.gms.common.internal.Objects;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes8.dex */
|
|
public class ZoomSuggestionOptions {
|
|
private final ZoomCallback zza;
|
|
private final float zzb;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static class Builder {
|
|
private final ZoomCallback zza;
|
|
private float zzb;
|
|
|
|
public Builder(@NonNull ZoomCallback zoomCallback) {
|
|
this.zza = zoomCallback;
|
|
}
|
|
|
|
@NonNull
|
|
public ZoomSuggestionOptions build() {
|
|
return new ZoomSuggestionOptions(this.zza, this.zzb, null);
|
|
}
|
|
|
|
@NonNull
|
|
public Builder setMaxSupportedZoomRatio(float f) {
|
|
this.zzb = f;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public interface ZoomCallback {
|
|
boolean setZoom(float f);
|
|
}
|
|
|
|
public /* synthetic */ ZoomSuggestionOptions(ZoomCallback zoomCallback, float f, zzb zzbVar) {
|
|
this.zza = zoomCallback;
|
|
this.zzb = f;
|
|
}
|
|
|
|
public boolean equals(@Nullable Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ZoomSuggestionOptions)) {
|
|
return false;
|
|
}
|
|
ZoomSuggestionOptions zoomSuggestionOptions = (ZoomSuggestionOptions) obj;
|
|
return Objects.equal(this.zza, zoomSuggestionOptions.zza) && this.zzb == zoomSuggestionOptions.zzb;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Objects.hashCode(this.zza, Float.valueOf(this.zzb));
|
|
}
|
|
|
|
public final float zza() {
|
|
return this.zzb;
|
|
}
|
|
|
|
@NonNull
|
|
public final ZoomCallback zzb() {
|
|
return this.zza;
|
|
}
|
|
}
|