Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AutoValue generated source code
@javax.annotation.Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Item extends Item {
private final String sku;
private final String barcode;
private final boolean backup;
private final boolean removed;
private final int external_srr_reservation_id;
private final int external_rb_reservation_id;
AutoValue_Item(
String sku,
String barcode,
boolean backup,
boolean removed,
int external_srr_reservation_id,
int external_rb_reservation_id) {
if (sku == null) {
throw new NullPointerException("Null sku");
}
this.sku = sku;
if (barcode == null) {
throw new NullPointerException("Null barcode");
}
this.barcode = barcode;
this.backup = backup;
this.removed = removed;
this.external_srr_reservation_id = external_srr_reservation_id;
this.external_rb_reservation_id = external_rb_reservation_id;
}
@Override
public String sku() {
return sku;
}
@Override
public String barcode() {
return barcode;
}
@Override
public boolean backup() {
return backup;
}
@Override
public boolean removed() {
return removed;
}
@Override
public int external_srr_reservation_id() {
return external_srr_reservation_id;
}
@Override
public int external_rb_reservation_id() {
return external_rb_reservation_id;
}
@Override
public String toString() {
return "Item{"
+ "sku=" + sku
+ ", barcode=" + barcode
+ ", backup=" + backup
+ ", removed=" + removed
+ ", external_srr_reservation_id=" + external_srr_reservation_id
+ ", external_rb_reservation_id=" + external_rb_reservation_id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Item) {
Item that = (Item) o;
return (this.sku.equals(that.sku()))
&& (this.barcode.equals(that.barcode()))
&& (this.backup == that.backup())
&& (this.removed == that.removed())
&& (this.external_srr_reservation_id == that.external_srr_reservation_id())
&& (this.external_rb_reservation_id == that.external_rb_reservation_id());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= sku.hashCode();
h *= 1000003;
h ^= barcode.hashCode();
h *= 1000003;
h ^= backup ? 1231 : 1237;
h *= 1000003;
h ^= removed ? 1231 : 1237;
h *= 1000003;
h ^= external_srr_reservation_id;
h *= 1000003;
h ^= external_rb_reservation_id;
return h;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.