
com.fedex.ship.stub.BinaryBarcode Maven / Gradle / Ivy
The newest version!
/**
* BinaryBarcode.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 a barcode whose content
* must be represented as binary data (i.e. not ASCII text).
*/
public class BinaryBarcode implements java.io.Serializable {
/* The kind of barcode data in this instance. */
private com.fedex.ship.stub.BinaryBarcodeType type;
/* The data content of this instance. */
private byte[] value;
public BinaryBarcode() {
}
public BinaryBarcode(
com.fedex.ship.stub.BinaryBarcodeType type,
byte[] value) {
this.type = type;
this.value = value;
}
/**
* Gets the type value for this BinaryBarcode.
*
* @return type * The kind of barcode data in this instance.
*/
public com.fedex.ship.stub.BinaryBarcodeType getType() {
return type;
}
/**
* Sets the type value for this BinaryBarcode.
*
* @param type * The kind of barcode data in this instance.
*/
public void setType(com.fedex.ship.stub.BinaryBarcodeType type) {
this.type = type;
}
/**
* Gets the value value for this BinaryBarcode.
*
* @return value * The data content of this instance.
*/
public byte[] getValue() {
return value;
}
/**
* Sets the value value for this BinaryBarcode.
*
* @param value * The data content of this instance.
*/
public void setValue(byte[] value) {
this.value = value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof BinaryBarcode)) return false;
BinaryBarcode other = (BinaryBarcode) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.type==null && other.getType()==null) ||
(this.type!=null &&
this.type.equals(other.getType()))) &&
((this.value==null && other.getValue()==null) ||
(this.value!=null &&
java.util.Arrays.equals(this.value, other.getValue())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getType() != null) {
_hashCode += getType().hashCode();
}
if (getValue() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy