
com.fedex.ship.stub.ValidatedHazardousContainer Maven / Gradle / Ivy
The newest version!
/**
* ValidatedHazardousContainer.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.fedex.ship.stub;
/**
* Specifies the concept of a container used to package dangerous
* goods commodities.
*/
public class ValidatedHazardousContainer implements java.io.Serializable {
/* Indicates that the quantity of the dangerous goods packaged
* is permissible for shipping. This is used to ensure that the dangerous
* goods commodities do not exceed the net quantity per package restrictions. */
private java.math.BigDecimal QValue;
/* Documents the kinds and quantities of all hazardous commodities
* in the current package. */
private com.fedex.ship.stub.ValidatedHazardousCommodityContent[] hazardousCommodities;
public ValidatedHazardousContainer() {
}
public ValidatedHazardousContainer(
java.math.BigDecimal QValue,
com.fedex.ship.stub.ValidatedHazardousCommodityContent[] hazardousCommodities) {
this.QValue = QValue;
this.hazardousCommodities = hazardousCommodities;
}
/**
* Gets the QValue value for this ValidatedHazardousContainer.
*
* @return QValue * Indicates that the quantity of the dangerous goods packaged
* is permissible for shipping. This is used to ensure that the dangerous
* goods commodities do not exceed the net quantity per package restrictions.
*/
public java.math.BigDecimal getQValue() {
return QValue;
}
/**
* Sets the QValue value for this ValidatedHazardousContainer.
*
* @param QValue * Indicates that the quantity of the dangerous goods packaged
* is permissible for shipping. This is used to ensure that the dangerous
* goods commodities do not exceed the net quantity per package restrictions.
*/
public void setQValue(java.math.BigDecimal QValue) {
this.QValue = QValue;
}
/**
* Gets the hazardousCommodities value for this ValidatedHazardousContainer.
*
* @return hazardousCommodities * Documents the kinds and quantities of all hazardous commodities
* in the current package.
*/
public com.fedex.ship.stub.ValidatedHazardousCommodityContent[] getHazardousCommodities() {
return hazardousCommodities;
}
/**
* Sets the hazardousCommodities value for this ValidatedHazardousContainer.
*
* @param hazardousCommodities * Documents the kinds and quantities of all hazardous commodities
* in the current package.
*/
public void setHazardousCommodities(com.fedex.ship.stub.ValidatedHazardousCommodityContent[] hazardousCommodities) {
this.hazardousCommodities = hazardousCommodities;
}
public com.fedex.ship.stub.ValidatedHazardousCommodityContent getHazardousCommodities(int i) {
return this.hazardousCommodities[i];
}
public void setHazardousCommodities(int i, com.fedex.ship.stub.ValidatedHazardousCommodityContent _value) {
this.hazardousCommodities[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ValidatedHazardousContainer)) return false;
ValidatedHazardousContainer other = (ValidatedHazardousContainer) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.QValue==null && other.getQValue()==null) ||
(this.QValue!=null &&
this.QValue.equals(other.getQValue()))) &&
((this.hazardousCommodities==null && other.getHazardousCommodities()==null) ||
(this.hazardousCommodities!=null &&
java.util.Arrays.equals(this.hazardousCommodities, other.getHazardousCommodities())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getQValue() != null) {
_hashCode += getQValue().hashCode();
}
if (getHazardousCommodities() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy