Eclipse的插件

源代码在线查看: phone.java

软件大小: 11165 K
上传用户: guigui2008q
关键词: Eclipse 插件
下载地址: 免注册下载 普通下载 VIP

相关代码

				/**
				 * Phone.java
				 *
				 * This file was auto-generated from WSDL
				 * by the Apache Axis WSDL2Java emitter.
				 */
				
				package ejb.service.addressbook.wsiftypes;
				
				public class Phone  implements java.io.Serializable {
				    private int areaCode;
				    private java.lang.String exchange;
				    private java.lang.String number;
				
				    public Phone() {
				    }
				
				    public int getAreaCode() {
				        return areaCode;
				    }
				
				    public void setAreaCode(int areaCode) {
				        this.areaCode = areaCode;
				    }
				
				    public java.lang.String getExchange() {
				        return exchange;
				    }
				
				    public void setExchange(java.lang.String exchange) {
				        this.exchange = exchange;
				    }
				
				    public java.lang.String getNumber() {
				        return number;
				    }
				
				    public void setNumber(java.lang.String number) {
				        this.number = number;
				    }
				
				    private java.lang.Object __equalsCalc = null;
				    public synchronized boolean equals(java.lang.Object obj) {
				        if (!(obj instanceof Phone)) return false;
				        Phone other = (Phone) obj;
				        if (obj == null) return false;
				        if (this == obj) return true;
				        if (__equalsCalc != null) {
				            return (__equalsCalc == obj);
				        }
				        __equalsCalc = obj;
				        boolean _equals;
				        _equals = true && 
				            areaCode == other.getAreaCode() &&
				            ((exchange==null && other.getExchange()==null) || 
				             (exchange!=null &&
				              exchange.equals(other.getExchange()))) &&
				            ((number==null && other.getNumber()==null) || 
				             (number!=null &&
				              number.equals(other.getNumber())));
				        __equalsCalc = null;
				        return _equals;
				    }
				
				    private boolean __hashCodeCalc = false;
				    public synchronized int hashCode() {
				        if (__hashCodeCalc) {
				            return 0;
				        }
				        __hashCodeCalc = true;
				        int _hashCode = 1;
				        _hashCode += getAreaCode();
				        if (getExchange() != null) {
				            _hashCode += getExchange().hashCode();
				        }
				        if (getNumber() != null) {
				            _hashCode += getNumber().hashCode();
				        }
				        __hashCodeCalc = false;
				        return _hashCode;
				    }
				}
							

相关资源