コード例 #1
1
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((_flowRef == null) ? 0 : _flowRef.hashCode());
   result = prime * result + ((_flowTable == null) ? 0 : _flowTable.hashCode());
   result = prime * result + ((_barrier == null) ? 0 : _barrier.hashCode());
   result = prime * result + ((_bufferId == null) ? 0 : _bufferId.hashCode());
   result = prime * result + ((_containerName == null) ? 0 : _containerName.hashCode());
   result = prime * result + ((_cookieMask == null) ? 0 : _cookieMask.hashCode());
   result = prime * result + ((_flags == null) ? 0 : _flags.hashCode());
   result = prime * result + ((_flowName == null) ? 0 : _flowName.hashCode());
   result = prime * result + ((_installHw == null) ? 0 : _installHw.hashCode());
   result = prime * result + ((_instructions == null) ? 0 : _instructions.hashCode());
   result = prime * result + ((_match == null) ? 0 : _match.hashCode());
   result = prime * result + ((_outGroup == null) ? 0 : _outGroup.hashCode());
   result = prime * result + ((_outPort == null) ? 0 : _outPort.hashCode());
   result = prime * result + ((_strict == null) ? 0 : _strict.hashCode());
   result = prime * result + ((_cookie == null) ? 0 : _cookie.hashCode());
   result = prime * result + ((_hardTimeout == null) ? 0 : _hardTimeout.hashCode());
   result = prime * result + ((_idleTimeout == null) ? 0 : _idleTimeout.hashCode());
   result = prime * result + ((_priority == null) ? 0 : _priority.hashCode());
   result = prime * result + ((_tableId == null) ? 0 : _tableId.hashCode());
   result = prime * result + ((_node == null) ? 0 : _node.hashCode());
   result = prime * result + ((_transactionId == null) ? 0 : _transactionId.hashCode());
   result = prime * result + ((_transactionUri == null) ? 0 : _transactionUri.hashCode());
   result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode());
   return result;
 }
コード例 #2
0
 @Override
 public boolean equals(java.lang.Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   FlowAddedImpl other = (FlowAddedImpl) obj;
   if (_flowRef == null) {
     if (other._flowRef != null) {
       return false;
     }
   } else if (!_flowRef.equals(other._flowRef)) {
     return false;
   }
   if (_flowTable == null) {
     if (other._flowTable != null) {
       return false;
     }
   } else if (!_flowTable.equals(other._flowTable)) {
     return false;
   }
   if (_barrier == null) {
     if (other._barrier != null) {
       return false;
     }
   } else if (!_barrier.equals(other._barrier)) {
     return false;
   }
   if (_bufferId == null) {
     if (other._bufferId != null) {
       return false;
     }
   } else if (!_bufferId.equals(other._bufferId)) {
     return false;
   }
   if (_containerName == null) {
     if (other._containerName != null) {
       return false;
     }
   } else if (!_containerName.equals(other._containerName)) {
     return false;
   }
   if (_cookieMask == null) {
     if (other._cookieMask != null) {
       return false;
     }
   } else if (!_cookieMask.equals(other._cookieMask)) {
     return false;
   }
   if (_flags == null) {
     if (other._flags != null) {
       return false;
     }
   } else if (!_flags.equals(other._flags)) {
     return false;
   }
   if (_flowName == null) {
     if (other._flowName != null) {
       return false;
     }
   } else if (!_flowName.equals(other._flowName)) {
     return false;
   }
   if (_installHw == null) {
     if (other._installHw != null) {
       return false;
     }
   } else if (!_installHw.equals(other._installHw)) {
     return false;
   }
   if (_instructions == null) {
     if (other._instructions != null) {
       return false;
     }
   } else if (!_instructions.equals(other._instructions)) {
     return false;
   }
   if (_match == null) {
     if (other._match != null) {
       return false;
     }
   } else if (!_match.equals(other._match)) {
     return false;
   }
   if (_outGroup == null) {
     if (other._outGroup != null) {
       return false;
     }
   } else if (!_outGroup.equals(other._outGroup)) {
     return false;
   }
   if (_outPort == null) {
     if (other._outPort != null) {
       return false;
     }
   } else if (!_outPort.equals(other._outPort)) {
     return false;
   }
   if (_strict == null) {
     if (other._strict != null) {
       return false;
     }
   } else if (!_strict.equals(other._strict)) {
     return false;
   }
   if (_cookie == null) {
     if (other._cookie != null) {
       return false;
     }
   } else if (!_cookie.equals(other._cookie)) {
     return false;
   }
   if (_hardTimeout == null) {
     if (other._hardTimeout != null) {
       return false;
     }
   } else if (!_hardTimeout.equals(other._hardTimeout)) {
     return false;
   }
   if (_idleTimeout == null) {
     if (other._idleTimeout != null) {
       return false;
     }
   } else if (!_idleTimeout.equals(other._idleTimeout)) {
     return false;
   }
   if (_priority == null) {
     if (other._priority != null) {
       return false;
     }
   } else if (!_priority.equals(other._priority)) {
     return false;
   }
   if (_tableId == null) {
     if (other._tableId != null) {
       return false;
     }
   } else if (!_tableId.equals(other._tableId)) {
     return false;
   }
   if (_node == null) {
     if (other._node != null) {
       return false;
     }
   } else if (!_node.equals(other._node)) {
     return false;
   }
   if (_transactionId == null) {
     if (other._transactionId != null) {
       return false;
     }
   } else if (!_transactionId.equals(other._transactionId)) {
     return false;
   }
   if (_transactionUri == null) {
     if (other._transactionUri != null) {
       return false;
     }
   } else if (!_transactionUri.equals(other._transactionUri)) {
     return false;
   }
   if (augmentation == null) {
     if (other.augmentation != null) {
       return false;
     }
   } else if (!augmentation.equals(other.augmentation)) {
     return false;
   }
   return true;
 }