public int hashCode () {\r
// hash code does not have to be a unique result - only that two objects that should be treated as equal\r
// return the same value. so this should work.\r
- int result = 0;\r
+ int result;\r
result = this.heatTemplateArtifactUuid.hashCode() + this.modelUuid.hashCode();\r
return result;\r
}\r
@Override
public int hashCode () {
- int result = 0;
+ int result;
result = this.paramName == null ? 0 : this.paramName.hashCode() + this.heatTemplateArtifactUuid == null ? 0 : this.heatTemplateArtifactUuid.hashCode();
return result;
}
@Override
public String toString () {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append (",modelName=" + modelName);
sb.append (",networkParamXSD=" + networkParamXSD);
@Override
public String toString () {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append("NETWORK Resource:");
sb.append("modelVersion=");
sb.append(modelVersion);
@Override
public String toString () {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append("modelCustomizationUuid=");
sb.append(this.modelCustomizationUuid);
sb.append("networkResourceModelUuid=");
public int hashCode () {
// hash code does not have to be a unique result - only that two objects that should be treated as equal
// return the same value. so this should work.
- int result = 0;
+ int result;
result = (this.modelCustomizationUuid != null ? this.modelCustomizationUuid.hashCode() : 0) + (this.networkResourceModelUuid != null ? this.networkResourceModelUuid.hashCode() : 0);
return result;
}
-}
\ No newline at end of file
+}
public int hashCode () {\r
// hash code does not have to be a unique result - only that two objects that should be treated as equal\r
// return the same value. so this should work.\r
- int result = 0;\r
+ int result;\r
result = (this.networkResourceModelName != null ? this.networkResourceModelName.hashCode() : 0) + (this.heatTemplateArtifactUuid != null ? this.heatTemplateArtifactUuid.hashCode() : 0);\r
return result;\r
}\r