コード例 #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   AddNodesItem other = (AddNodesItem) obj;
   if (ParentNodeId == null) {
     if (other.ParentNodeId != null) return false;
   } else if (!ParentNodeId.equals(other.ParentNodeId)) return false;
   if (ReferenceTypeId == null) {
     if (other.ReferenceTypeId != null) return false;
   } else if (!ReferenceTypeId.equals(other.ReferenceTypeId)) return false;
   if (RequestedNewNodeId == null) {
     if (other.RequestedNewNodeId != null) return false;
   } else if (!RequestedNewNodeId.equals(other.RequestedNewNodeId)) return false;
   if (BrowseName == null) {
     if (other.BrowseName != null) return false;
   } else if (!BrowseName.equals(other.BrowseName)) return false;
   if (NodeClass == null) {
     if (other.NodeClass != null) return false;
   } else if (!NodeClass.equals(other.NodeClass)) return false;
   if (NodeAttributes == null) {
     if (other.NodeAttributes != null) return false;
   } else if (!NodeAttributes.equals(other.NodeAttributes)) return false;
   if (TypeDefinition == null) {
     if (other.TypeDefinition != null) return false;
   } else if (!TypeDefinition.equals(other.TypeDefinition)) return false;
   return true;
 }