com.ebay.sell.inventory.inventoryitems.models.ShipToLocationAvailability Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebay-sdk Show documentation
Show all versions of ebay-sdk Show documentation
Java SDK for eBay REST APIs
package com.ebay.sell.inventory.inventoryitems.models;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
public class ShipToLocationAvailability {
private int quantity;
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
@Override
public boolean equals(final Object object) {
if (object == this) {
return true;
}
if (!(object instanceof ShipToLocationAvailability)) {
return false;
}
final ShipToLocationAvailability shipToLocationAvailability = (ShipToLocationAvailability) object;
return new EqualsBuilder().append(getQuantity(), shipToLocationAvailability.getQuantity()).isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(getQuantity()).toHashCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy