
com.fedex.ship.stub.Party Maven / Gradle / Ivy
The newest version!
/**
* Party.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;
public class Party implements java.io.Serializable {
private java.lang.String accountNumber;
private com.fedex.ship.stub.TaxpayerIdentification[] tins;
private com.fedex.ship.stub.Contact contact;
private com.fedex.ship.stub.Address address;
public Party() {
}
public Party(
java.lang.String accountNumber,
com.fedex.ship.stub.TaxpayerIdentification[] tins,
com.fedex.ship.stub.Contact contact,
com.fedex.ship.stub.Address address) {
this.accountNumber = accountNumber;
this.tins = tins;
this.contact = contact;
this.address = address;
}
/**
* Gets the accountNumber value for this Party.
*
* @return accountNumber
*/
public java.lang.String getAccountNumber() {
return accountNumber;
}
/**
* Sets the accountNumber value for this Party.
*
* @param accountNumber
*/
public void setAccountNumber(java.lang.String accountNumber) {
this.accountNumber = accountNumber;
}
/**
* Gets the tins value for this Party.
*
* @return tins
*/
public com.fedex.ship.stub.TaxpayerIdentification[] getTins() {
return tins;
}
/**
* Sets the tins value for this Party.
*
* @param tins
*/
public void setTins(com.fedex.ship.stub.TaxpayerIdentification[] tins) {
this.tins = tins;
}
public com.fedex.ship.stub.TaxpayerIdentification getTins(int i) {
return this.tins[i];
}
public void setTins(int i, com.fedex.ship.stub.TaxpayerIdentification _value) {
this.tins[i] = _value;
}
/**
* Gets the contact value for this Party.
*
* @return contact
*/
public com.fedex.ship.stub.Contact getContact() {
return contact;
}
/**
* Sets the contact value for this Party.
*
* @param contact
*/
public void setContact(com.fedex.ship.stub.Contact contact) {
this.contact = contact;
}
/**
* Gets the address value for this Party.
*
* @return address
*/
public com.fedex.ship.stub.Address getAddress() {
return address;
}
/**
* Sets the address value for this Party.
*
* @param address
*/
public void setAddress(com.fedex.ship.stub.Address address) {
this.address = address;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Party)) return false;
Party other = (Party) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.accountNumber==null && other.getAccountNumber()==null) ||
(this.accountNumber!=null &&
this.accountNumber.equals(other.getAccountNumber()))) &&
((this.tins==null && other.getTins()==null) ||
(this.tins!=null &&
java.util.Arrays.equals(this.tins, other.getTins()))) &&
((this.contact==null && other.getContact()==null) ||
(this.contact!=null &&
this.contact.equals(other.getContact()))) &&
((this.address==null && other.getAddress()==null) ||
(this.address!=null &&
this.address.equals(other.getAddress())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getAccountNumber() != null) {
_hashCode += getAccountNumber().hashCode();
}
if (getTins() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy