@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getParameterName() == null) ? 0 : getParameterName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); hashCode = prime * hashCode + ((getAllowedValues() == null) ? 0 : getAllowedValues().hashCode()); hashCode = prime * hashCode + ((getIsModifiable() == null) ? 0 : getIsModifiable().hashCode()); hashCode = prime * hashCode + ((getMinimumEngineVersion() == null) ? 0 : getMinimumEngineVersion().hashCode()); hashCode = prime * hashCode + ((getCacheNodeTypeSpecificValues() == null) ? 0 : getCacheNodeTypeSpecificValues().hashCode()); hashCode = prime * hashCode + ((getChangeType() == null) ? 0 : getChangeType().hashCode()); return hashCode; }
public CacheNodeTypeSpecificParameter unmarshall(StaxUnmarshallerContext context) throws Exception { CacheNodeTypeSpecificParameter cacheNodeTypeSpecificParameter = new CacheNodeTypeSpecificParameter(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; cacheNodeTypeSpecificParameter.setParameterName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setSource(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setDataType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setAllowedValues(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setIsModifiable(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setMinimumEngineVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.withCacheNodeTypeSpecificValues(new ArrayList<CacheNodeTypeSpecificValue>()); continue; .withCacheNodeTypeSpecificValues(CacheNodeTypeSpecificValueStaxUnmarshaller.getInstance().unmarshall(context));
public CacheNodeTypeSpecificParameter unmarshall(StaxUnmarshallerContext context) throws Exception { CacheNodeTypeSpecificParameter cacheNodeTypeSpecificParameter = new CacheNodeTypeSpecificParameter(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; cacheNodeTypeSpecificParameter.setParameterName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setSource(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setDataType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setAllowedValues(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setIsModifiable(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.setMinimumEngineVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNodeTypeSpecificParameter.withCacheNodeTypeSpecificValues(new ArrayList<CacheNodeTypeSpecificValue>()); continue; .withCacheNodeTypeSpecificValues(CacheNodeTypeSpecificValueStaxUnmarshaller.getInstance().unmarshall(context));
return false; CacheNodeTypeSpecificParameter other = (CacheNodeTypeSpecificParameter) obj; if (other.getParameterName() == null ^ this.getParameterName() == null) return false; if (other.getParameterName() != null && other.getParameterName().equals(this.getParameterName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == false) return false; if (other.getDataType() == null ^ this.getDataType() == null) return false; if (other.getDataType() != null && other.getDataType().equals(this.getDataType()) == false) return false; if (other.getAllowedValues() == null ^ this.getAllowedValues() == null) return false; if (other.getAllowedValues() != null && other.getAllowedValues().equals(this.getAllowedValues()) == false) return false; if (other.getIsModifiable() == null ^ this.getIsModifiable() == null) return false; if (other.getIsModifiable() != null && other.getIsModifiable().equals(this.getIsModifiable()) == false) return false; if (other.getMinimumEngineVersion() == null ^ this.getMinimumEngineVersion() == null) return false; if (other.getMinimumEngineVersion() != null && other.getMinimumEngineVersion().equals(this.getMinimumEngineVersion()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getParameterName() != null) sb.append("ParameterName: ").append(getParameterName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()).append(","); if (getDataType() != null) sb.append("DataType: ").append(getDataType()).append(","); if (getAllowedValues() != null) sb.append("AllowedValues: ").append(getAllowedValues()).append(","); if (getIsModifiable() != null) sb.append("IsModifiable: ").append(getIsModifiable()).append(","); if (getMinimumEngineVersion() != null) sb.append("MinimumEngineVersion: ").append(getMinimumEngineVersion()).append(","); if (getCacheNodeTypeSpecificValues() != null) sb.append("CacheNodeTypeSpecificValues: ").append(getCacheNodeTypeSpecificValues()).append(","); if (getChangeType() != null) sb.append("ChangeType: ").append(getChangeType()); sb.append("}"); return sb.toString();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getParameterName() == null) ? 0 : getParameterName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); hashCode = prime * hashCode + ((getAllowedValues() == null) ? 0 : getAllowedValues().hashCode()); hashCode = prime * hashCode + ((getIsModifiable() == null) ? 0 : getIsModifiable().hashCode()); hashCode = prime * hashCode + ((getMinimumEngineVersion() == null) ? 0 : getMinimumEngineVersion().hashCode()); hashCode = prime * hashCode + ((getCacheNodeTypeSpecificValues() == null) ? 0 : getCacheNodeTypeSpecificValues().hashCode()); hashCode = prime * hashCode + ((getChangeType() == null) ? 0 : getChangeType().hashCode()); return hashCode; }
return false; CacheNodeTypeSpecificParameter other = (CacheNodeTypeSpecificParameter) obj; if (other.getParameterName() == null ^ this.getParameterName() == null) return false; if (other.getParameterName() != null && other.getParameterName().equals(this.getParameterName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == false) return false; if (other.getDataType() == null ^ this.getDataType() == null) return false; if (other.getDataType() != null && other.getDataType().equals(this.getDataType()) == false) return false; if (other.getAllowedValues() == null ^ this.getAllowedValues() == null) return false; if (other.getAllowedValues() != null && other.getAllowedValues().equals(this.getAllowedValues()) == false) return false; if (other.getIsModifiable() == null ^ this.getIsModifiable() == null) return false; if (other.getIsModifiable() != null && other.getIsModifiable().equals(this.getIsModifiable()) == false) return false; if (other.getMinimumEngineVersion() == null ^ this.getMinimumEngineVersion() == null) return false; if (other.getMinimumEngineVersion() != null && other.getMinimumEngineVersion().equals(this.getMinimumEngineVersion()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getParameterName() != null) sb.append("ParameterName: ").append(getParameterName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()).append(","); if (getDataType() != null) sb.append("DataType: ").append(getDataType()).append(","); if (getAllowedValues() != null) sb.append("AllowedValues: ").append(getAllowedValues()).append(","); if (getIsModifiable() != null) sb.append("IsModifiable: ").append(getIsModifiable()).append(","); if (getMinimumEngineVersion() != null) sb.append("MinimumEngineVersion: ").append(getMinimumEngineVersion()).append(","); if (getCacheNodeTypeSpecificValues() != null) sb.append("CacheNodeTypeSpecificValues: ").append(getCacheNodeTypeSpecificValues()).append(","); if (getChangeType() != null) sb.append("ChangeType: ").append(getChangeType()); sb.append("}"); return sb.toString();