
org.robolectric.shadows.AutoValue_ShadowContextHubManager_ContextHubClientCallbackDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.hardware.location.ContextHubClientCallback;
import java.util.concurrent.Executor;
import javax.annotation.Generated;
import javax.annotation.Nonnull;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ShadowContextHubManager_ContextHubClientCallbackDetails extends ShadowContextHubManager.ContextHubClientCallbackDetails {
private final ContextHubClientCallback callback;
private final Executor executor;
AutoValue_ShadowContextHubManager_ContextHubClientCallbackDetails(
ContextHubClientCallback callback,
Executor executor) {
if (callback == null) {
throw new NullPointerException("Null callback");
}
this.callback = callback;
if (executor == null) {
throw new NullPointerException("Null executor");
}
this.executor = executor;
}
@Nonnull
@Override
ContextHubClientCallback getCallback() {
return callback;
}
@Nonnull
@Override
Executor getExecutor() {
return executor;
}
@Override
public String toString() {
return "ContextHubClientCallbackDetails{"
+ "callback=" + callback + ", "
+ "executor=" + executor
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ShadowContextHubManager.ContextHubClientCallbackDetails) {
ShadowContextHubManager.ContextHubClientCallbackDetails that = (ShadowContextHubManager.ContextHubClientCallbackDetails) o;
return this.callback.equals(that.getCallback())
&& this.executor.equals(that.getExecutor());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= callback.hashCode();
h$ *= 1000003;
h$ ^= executor.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy