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

com.fedex.ship.stub.CustomsDeclarationStatementDetail Maven / Gradle / Ivy

The newest version!
/**
 * CustomsDeclarationStatementDetail.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;


/**
 * This provides the information necessary to identify the different
 * statements, declarations, acts, and/or certifications that apply to
 * this shipment.
 */
public class CustomsDeclarationStatementDetail  implements java.io.Serializable {
    /* This indicates the different statements, declarations, acts,
     * and/or certifications that apply to this shipment. */
    private com.fedex.ship.stub.CustomsDeclarationStatementType[] types;

    /* Specifies the NAFTA low value statement information. */
    private com.fedex.ship.stub.NaftaLowValueStatementDetail naftaLowValueStatementDetail;

    public CustomsDeclarationStatementDetail() {
    }

    public CustomsDeclarationStatementDetail(
           com.fedex.ship.stub.CustomsDeclarationStatementType[] types,
           com.fedex.ship.stub.NaftaLowValueStatementDetail naftaLowValueStatementDetail) {
           this.types = types;
           this.naftaLowValueStatementDetail = naftaLowValueStatementDetail;
    }


    /**
     * Gets the types value for this CustomsDeclarationStatementDetail.
     * 
     * @return types   * This indicates the different statements, declarations, acts,
     * and/or certifications that apply to this shipment.
     */
    public com.fedex.ship.stub.CustomsDeclarationStatementType[] getTypes() {
        return types;
    }


    /**
     * Sets the types value for this CustomsDeclarationStatementDetail.
     * 
     * @param types   * This indicates the different statements, declarations, acts,
     * and/or certifications that apply to this shipment.
     */
    public void setTypes(com.fedex.ship.stub.CustomsDeclarationStatementType[] types) {
        this.types = types;
    }

    public com.fedex.ship.stub.CustomsDeclarationStatementType getTypes(int i) {
        return this.types[i];
    }

    public void setTypes(int i, com.fedex.ship.stub.CustomsDeclarationStatementType _value) {
        this.types[i] = _value;
    }


    /**
     * Gets the naftaLowValueStatementDetail value for this CustomsDeclarationStatementDetail.
     * 
     * @return naftaLowValueStatementDetail   * Specifies the NAFTA low value statement information.
     */
    public com.fedex.ship.stub.NaftaLowValueStatementDetail getNaftaLowValueStatementDetail() {
        return naftaLowValueStatementDetail;
    }


    /**
     * Sets the naftaLowValueStatementDetail value for this CustomsDeclarationStatementDetail.
     * 
     * @param naftaLowValueStatementDetail   * Specifies the NAFTA low value statement information.
     */
    public void setNaftaLowValueStatementDetail(com.fedex.ship.stub.NaftaLowValueStatementDetail naftaLowValueStatementDetail) {
        this.naftaLowValueStatementDetail = naftaLowValueStatementDetail;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof CustomsDeclarationStatementDetail)) return false;
        CustomsDeclarationStatementDetail other = (CustomsDeclarationStatementDetail) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.types==null && other.getTypes()==null) || 
             (this.types!=null &&
              java.util.Arrays.equals(this.types, other.getTypes()))) &&
            ((this.naftaLowValueStatementDetail==null && other.getNaftaLowValueStatementDetail()==null) || 
             (this.naftaLowValueStatementDetail!=null &&
              this.naftaLowValueStatementDetail.equals(other.getNaftaLowValueStatementDetail())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getTypes() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy