@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReservedNodeId() == null) ? 0 : getReservedNodeId().hashCode()); hashCode = prime * hashCode + ((getReservedNodeOfferingId() == null) ? 0 : getReservedNodeOfferingId().hashCode()); hashCode = prime * hashCode + ((getNodeType() == null) ? 0 : getNodeType().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode()); hashCode = prime * hashCode + ((getFixedPrice() == null) ? 0 : getFixedPrice().hashCode()); hashCode = prime * hashCode + ((getUsagePrice() == null) ? 0 : getUsagePrice().hashCode()); hashCode = prime * hashCode + ((getCurrencyCode() == null) ? 0 : getCurrencyCode().hashCode()); hashCode = prime * hashCode + ((getNodeCount() == null) ? 0 : getNodeCount().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getOfferingType() == null) ? 0 : getOfferingType().hashCode()); hashCode = prime * hashCode + ((getRecurringCharges() == null) ? 0 : getRecurringCharges().hashCode()); hashCode = prime * hashCode + ((getReservedNodeOfferingType() == null) ? 0 : getReservedNodeOfferingType().hashCode()); return hashCode; }
public ReservedNode unmarshall(StaxUnmarshallerContext context) throws Exception { ReservedNode reservedNode = new ReservedNode(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; reservedNode.setReservedNodeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setReservedNodeOfferingId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setStartTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; reservedNode.setDuration(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setFixedPrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setUsagePrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setCurrencyCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setNodeCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context));
public ReservedNode unmarshall(StaxUnmarshallerContext context) throws Exception { ReservedNode reservedNode = new ReservedNode(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; reservedNode.setReservedNodeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setReservedNodeOfferingId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setStartTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; reservedNode.setDuration(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setFixedPrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setUsagePrice(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setCurrencyCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; reservedNode.setNodeCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context));
return false; ReservedNode other = (ReservedNode) obj; if (other.getReservedNodeId() == null ^ this.getReservedNodeId() == null) return false; if (other.getReservedNodeId() != null && other.getReservedNodeId().equals(this.getReservedNodeId()) == false) return false; if (other.getReservedNodeOfferingId() == null ^ this.getReservedNodeOfferingId() == null) return false; if (other.getReservedNodeOfferingId() != null && other.getReservedNodeOfferingId().equals(this.getReservedNodeOfferingId()) == false) return false; if (other.getNodeType() == null ^ this.getNodeType() == null) return false; if (other.getNodeType() != null && other.getNodeType().equals(this.getNodeType()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getDuration() == null ^ this.getDuration() == null) return false; if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == false) return false; if (other.getFixedPrice() == null ^ this.getFixedPrice() == null) return false; if (other.getFixedPrice() != null && other.getFixedPrice().equals(this.getFixedPrice()) == false) return false; if (other.getUsagePrice() == null ^ this.getUsagePrice() == null) return false; if (other.getUsagePrice() != null && other.getUsagePrice().equals(this.getUsagePrice()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getReservedNodeId() != null) sb.append("ReservedNodeId: ").append(getReservedNodeId()).append(","); if (getReservedNodeOfferingId() != null) sb.append("ReservedNodeOfferingId: ").append(getReservedNodeOfferingId()).append(","); if (getNodeType() != null) sb.append("NodeType: ").append(getNodeType()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getDuration() != null) sb.append("Duration: ").append(getDuration()).append(","); if (getFixedPrice() != null) sb.append("FixedPrice: ").append(getFixedPrice()).append(","); if (getUsagePrice() != null) sb.append("UsagePrice: ").append(getUsagePrice()).append(","); if (getCurrencyCode() != null) sb.append("CurrencyCode: ").append(getCurrencyCode()).append(","); if (getNodeCount() != null) sb.append("NodeCount: ").append(getNodeCount()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getOfferingType() != null) sb.append("OfferingType: ").append(getOfferingType()).append(","); if (getRecurringCharges() != null) sb.append("RecurringCharges: ").append(getRecurringCharges()).append(","); if (getReservedNodeOfferingType() != null) sb.append("ReservedNodeOfferingType: ").append(getReservedNodeOfferingType()); sb.append("}");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReservedNodeId() == null) ? 0 : getReservedNodeId().hashCode()); hashCode = prime * hashCode + ((getReservedNodeOfferingId() == null) ? 0 : getReservedNodeOfferingId().hashCode()); hashCode = prime * hashCode + ((getNodeType() == null) ? 0 : getNodeType().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode()); hashCode = prime * hashCode + ((getFixedPrice() == null) ? 0 : getFixedPrice().hashCode()); hashCode = prime * hashCode + ((getUsagePrice() == null) ? 0 : getUsagePrice().hashCode()); hashCode = prime * hashCode + ((getCurrencyCode() == null) ? 0 : getCurrencyCode().hashCode()); hashCode = prime * hashCode + ((getNodeCount() == null) ? 0 : getNodeCount().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getOfferingType() == null) ? 0 : getOfferingType().hashCode()); hashCode = prime * hashCode + ((getRecurringCharges() == null) ? 0 : getRecurringCharges().hashCode()); hashCode = prime * hashCode + ((getReservedNodeOfferingType() == null) ? 0 : getReservedNodeOfferingType().hashCode()); return hashCode; }
return false; ReservedNode other = (ReservedNode) obj; if (other.getReservedNodeId() == null ^ this.getReservedNodeId() == null) return false; if (other.getReservedNodeId() != null && other.getReservedNodeId().equals(this.getReservedNodeId()) == false) return false; if (other.getReservedNodeOfferingId() == null ^ this.getReservedNodeOfferingId() == null) return false; if (other.getReservedNodeOfferingId() != null && other.getReservedNodeOfferingId().equals(this.getReservedNodeOfferingId()) == false) return false; if (other.getNodeType() == null ^ this.getNodeType() == null) return false; if (other.getNodeType() != null && other.getNodeType().equals(this.getNodeType()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getDuration() == null ^ this.getDuration() == null) return false; if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == false) return false; if (other.getFixedPrice() == null ^ this.getFixedPrice() == null) return false; if (other.getFixedPrice() != null && other.getFixedPrice().equals(this.getFixedPrice()) == false) return false; if (other.getUsagePrice() == null ^ this.getUsagePrice() == null) return false; if (other.getUsagePrice() != null && other.getUsagePrice().equals(this.getUsagePrice()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getReservedNodeId() != null) sb.append("ReservedNodeId: ").append(getReservedNodeId()).append(","); if (getReservedNodeOfferingId() != null) sb.append("ReservedNodeOfferingId: ").append(getReservedNodeOfferingId()).append(","); if (getNodeType() != null) sb.append("NodeType: ").append(getNodeType()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getDuration() != null) sb.append("Duration: ").append(getDuration()).append(","); if (getFixedPrice() != null) sb.append("FixedPrice: ").append(getFixedPrice()).append(","); if (getUsagePrice() != null) sb.append("UsagePrice: ").append(getUsagePrice()).append(","); if (getCurrencyCode() != null) sb.append("CurrencyCode: ").append(getCurrencyCode()).append(","); if (getNodeCount() != null) sb.append("NodeCount: ").append(getNodeCount()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getOfferingType() != null) sb.append("OfferingType: ").append(getOfferingType()).append(","); if (getRecurringCharges() != null) sb.append("RecurringCharges: ").append(getRecurringCharges()).append(","); if (getReservedNodeOfferingType() != null) sb.append("ReservedNodeOfferingType: ").append(getReservedNodeOfferingType()); sb.append("}");