org.robolectric.shadows.AutoValue_ShadowBluetoothLeScanner_ScanParams Maven / Gradle / Ivy
package org.robolectric.shadows;
import android.app.PendingIntent;
import android.bluetooth.le.ScanCallback;
import android.bluetooth.le.ScanFilter;
import android.bluetooth.le.ScanSettings;
import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ShadowBluetoothLeScanner_ScanParams extends ShadowBluetoothLeScanner.ScanParams {
private final ImmutableList scanFilters;
private final ScanSettings scanSettings;
private final PendingIntent pendingIntent;
private final ScanCallback scanCallback;
AutoValue_ShadowBluetoothLeScanner_ScanParams(
ImmutableList scanFilters,
@Nullable ScanSettings scanSettings,
@Nullable PendingIntent pendingIntent,
@Nullable ScanCallback scanCallback) {
if (scanFilters == null) {
throw new NullPointerException("Null scanFilters");
}
this.scanFilters = scanFilters;
this.scanSettings = scanSettings;
this.pendingIntent = pendingIntent;
this.scanCallback = scanCallback;
}
@Override
public ImmutableList scanFilters() {
return scanFilters;
}
@Nullable
@Override
public ScanSettings scanSettings() {
return scanSettings;
}
@Nullable
@Override
public PendingIntent pendingIntent() {
return pendingIntent;
}
@Nullable
@Override
public ScanCallback scanCallback() {
return scanCallback;
}
@Override
public String toString() {
return "ScanParams{"
+ "scanFilters=" + scanFilters + ", "
+ "scanSettings=" + scanSettings + ", "
+ "pendingIntent=" + pendingIntent + ", "
+ "scanCallback=" + scanCallback
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ShadowBluetoothLeScanner.ScanParams) {
ShadowBluetoothLeScanner.ScanParams that = (ShadowBluetoothLeScanner.ScanParams) o;
return this.scanFilters.equals(that.scanFilters())
&& (this.scanSettings == null ? that.scanSettings() == null : this.scanSettings.equals(that.scanSettings()))
&& (this.pendingIntent == null ? that.pendingIntent() == null : this.pendingIntent.equals(that.pendingIntent()))
&& (this.scanCallback == null ? that.scanCallback() == null : this.scanCallback.equals(that.scanCallback()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= scanFilters.hashCode();
h$ *= 1000003;
h$ ^= (scanSettings == null) ? 0 : scanSettings.hashCode();
h$ *= 1000003;
h$ ^= (pendingIntent == null) ? 0 : pendingIntent.hashCode();
h$ *= 1000003;
h$ ^= (scanCallback == null) ? 0 : scanCallback.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy