All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ebay.sell.inventory.inventoryitems.models.Availability Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.ebay.sell.inventory.inventoryitems.models;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Availability {

	private ShipToLocationAvailability shipToLocationAvailability;

	public ShipToLocationAvailability getShipToLocationAvailability() {
		return shipToLocationAvailability;
	}

	public void setShipToLocationAvailability(ShipToLocationAvailability shipToLocationAvailability) {
		this.shipToLocationAvailability = shipToLocationAvailability;
	}

	@Override
	public boolean equals(final Object object) {
		if (object == this) {
			return true;
		}
		if (!(object instanceof Availability)) {
			return false;
		}
		final Availability availability = (Availability) object;
		return new EqualsBuilder().append(getShipToLocationAvailability(), availability.getShipToLocationAvailability())
				.isEquals();
	}

	@Override
	public int hashCode() {
		return new HashCodeBuilder().append(getShipToLocationAvailability()).toHashCode();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy