📄 quote.java
字号:
/**
* Sets the marketCap value for this Quote.
*
* @param marketCap
*/
public void setMarketCap(java.lang.String marketCap) {
this.marketCap = marketCap;
}
/**
* Gets the yearRange value for this Quote.
*
* @return yearRange
*/
public java.lang.String getYearRange() {
return yearRange;
}
/**
* Sets the yearRange value for this Quote.
*
* @param yearRange
*/
public void setYearRange(java.lang.String yearRange) {
this.yearRange = yearRange;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Quote)) return false;
Quote other = (Quote) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.companyName==null && other.getCompanyName()==null) ||
(this.companyName!=null &&
this.companyName.equals(other.getCompanyName()))) &&
((this.stockTicker==null && other.getStockTicker()==null) ||
(this.stockTicker!=null &&
this.stockTicker.equals(other.getStockTicker()))) &&
((this.stockQuote==null && other.getStockQuote()==null) ||
(this.stockQuote!=null &&
this.stockQuote.equals(other.getStockQuote()))) &&
((this.lastUpdated==null && other.getLastUpdated()==null) ||
(this.lastUpdated!=null &&
this.lastUpdated.equals(other.getLastUpdated()))) &&
((this.change==null && other.getChange()==null) ||
(this.change!=null &&
this.change.equals(other.getChange()))) &&
((this.openPrice==null && other.getOpenPrice()==null) ||
(this.openPrice!=null &&
this.openPrice.equals(other.getOpenPrice()))) &&
((this.dayHighPrice==null && other.getDayHighPrice()==null) ||
(this.dayHighPrice!=null &&
this.dayHighPrice.equals(other.getDayHighPrice()))) &&
((this.dayLowPrice==null && other.getDayLowPrice()==null) ||
(this.dayLowPrice!=null &&
this.dayLowPrice.equals(other.getDayLowPrice()))) &&
((this.volume==null && other.getVolume()==null) ||
(this.volume!=null &&
this.volume.equals(other.getVolume()))) &&
((this.marketCap==null && other.getMarketCap()==null) ||
(this.marketCap!=null &&
this.marketCap.equals(other.getMarketCap()))) &&
((this.yearRange==null && other.getYearRange()==null) ||
(this.yearRange!=null &&
this.yearRange.equals(other.getYearRange())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getCompanyName() != null) {
_hashCode += getCompanyName().hashCode();
}
if (getStockTicker() != null) {
_hashCode += getStockTicker().hashCode();
}
if (getStockQuote() != null) {
_hashCode += getStockQuote().hashCode();
}
if (getLastUpdated() != null) {
_hashCode += getLastUpdated().hashCode();
}
if (getChange() != null) {
_hashCode += getChange().hashCode();
}
if (getOpenPrice() != null) {
_hashCode += getOpenPrice().hashCode();
}
if (getDayHighPrice() != null) {
_hashCode += getDayHighPrice().hashCode();
}
if (getDayLowPrice() != null) {
_hashCode += getDayLowPrice().hashCode();
}
if (getVolume() != null) {
_hashCode += getVolume().hashCode();
}
if (getMarketCap() != null) {
_hashCode += getMarketCap().hashCode();
}
if (getYearRange() != null) {
_hashCode += getYearRange().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(Quote.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://swanandmokashi.com", "Quote"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("companyName");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "CompanyName"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("stockTicker");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "StockTicker"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("stockQuote");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "StockQuote"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("lastUpdated");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "LastUpdated"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("change");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "Change"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("openPrice");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "OpenPrice"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("dayHighPrice");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "DayHighPrice"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("dayLowPrice");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "DayLowPrice"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("volume");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "Volume"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("marketCap");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "MarketCap"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("yearRange");
elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "YearRange"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -