
org.robolectric.shadows.AutoValue_BackupDataEntity 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 java.util.Arrays;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BackupDataEntity extends BackupDataEntity {
private final String key;
private final int dataSize;
private final byte[] data;
AutoValue_BackupDataEntity(
String key,
int dataSize,
byte[] data) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
this.dataSize = dataSize;
if (data == null) {
throw new NullPointerException("Null data");
}
this.data = data;
}
@Override
public String key() {
return key;
}
@Override
public int dataSize() {
return dataSize;
}
@SuppressWarnings("mutable")
@Override
public byte[] data() {
return data;
}
@Override
public String toString() {
return "BackupDataEntity{"
+ "key=" + key + ", "
+ "dataSize=" + dataSize + ", "
+ "data=" + Arrays.toString(data)
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BackupDataEntity) {
BackupDataEntity that = (BackupDataEntity) o;
return this.key.equals(that.key())
&& this.dataSize == that.dataSize()
&& Arrays.equals(this.data, (that instanceof AutoValue_BackupDataEntity) ? ((AutoValue_BackupDataEntity) that).data : that.data());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
h$ *= 1000003;
h$ ^= dataSize;
h$ *= 1000003;
h$ ^= Arrays.hashCode(data);
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy