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

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

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


/**
 * Each instance of this data type represents the set of barcodes
 * (of all types) which are associated with a specific package.
 */
public class PackageBarcodes  implements java.io.Serializable {
    /* Binary-style barcodes for this package. */
    private com.fedex.ship.stub.BinaryBarcode[] binaryBarcodes;

    /* String-style barcodes for this package. */
    private com.fedex.ship.stub.StringBarcode[] stringBarcodes;

    public PackageBarcodes() {
    }

    public PackageBarcodes(
           com.fedex.ship.stub.BinaryBarcode[] binaryBarcodes,
           com.fedex.ship.stub.StringBarcode[] stringBarcodes) {
           this.binaryBarcodes = binaryBarcodes;
           this.stringBarcodes = stringBarcodes;
    }


    /**
     * Gets the binaryBarcodes value for this PackageBarcodes.
     * 
     * @return binaryBarcodes   * Binary-style barcodes for this package.
     */
    public com.fedex.ship.stub.BinaryBarcode[] getBinaryBarcodes() {
        return binaryBarcodes;
    }


    /**
     * Sets the binaryBarcodes value for this PackageBarcodes.
     * 
     * @param binaryBarcodes   * Binary-style barcodes for this package.
     */
    public void setBinaryBarcodes(com.fedex.ship.stub.BinaryBarcode[] binaryBarcodes) {
        this.binaryBarcodes = binaryBarcodes;
    }

    public com.fedex.ship.stub.BinaryBarcode getBinaryBarcodes(int i) {
        return this.binaryBarcodes[i];
    }

    public void setBinaryBarcodes(int i, com.fedex.ship.stub.BinaryBarcode _value) {
        this.binaryBarcodes[i] = _value;
    }


    /**
     * Gets the stringBarcodes value for this PackageBarcodes.
     * 
     * @return stringBarcodes   * String-style barcodes for this package.
     */
    public com.fedex.ship.stub.StringBarcode[] getStringBarcodes() {
        return stringBarcodes;
    }


    /**
     * Sets the stringBarcodes value for this PackageBarcodes.
     * 
     * @param stringBarcodes   * String-style barcodes for this package.
     */
    public void setStringBarcodes(com.fedex.ship.stub.StringBarcode[] stringBarcodes) {
        this.stringBarcodes = stringBarcodes;
    }

    public com.fedex.ship.stub.StringBarcode getStringBarcodes(int i) {
        return this.stringBarcodes[i];
    }

    public void setStringBarcodes(int i, com.fedex.ship.stub.StringBarcode _value) {
        this.stringBarcodes[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof PackageBarcodes)) return false;
        PackageBarcodes other = (PackageBarcodes) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.binaryBarcodes==null && other.getBinaryBarcodes()==null) || 
             (this.binaryBarcodes!=null &&
              java.util.Arrays.equals(this.binaryBarcodes, other.getBinaryBarcodes()))) &&
            ((this.stringBarcodes==null && other.getStringBarcodes()==null) || 
             (this.stringBarcodes!=null &&
              java.util.Arrays.equals(this.stringBarcodes, other.getStringBarcodes())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy