예제 #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   FaceInstance other = (FaceInstance) obj;
   if (_action == null) {
     if (other._action != null) return false;
   } else if (!_action.equals(other._action)) return false;
   if (_ccndID == null) {
     if (other._ccndID != null) return false;
   } else if (!_ccndID.equals(other._ccndID)) return false;
   if (_faceID == null) {
     if (other._faceID != null) return false;
   } else if (!_faceID.equals(other._faceID)) return false;
   if (_ipProto == null) {
     if (other._ipProto != null) return false;
   } else if (!_ipProto.equals(other._ipProto)) return false;
   if (_host == null) {
     if (other._host != null) return false;
   } else if (!_host.equals(other._host)) return false;
   if (_port == null) {
     if (other._port != null) return false;
   } else if (!_port.equals(other._port)) return false;
   if (_multicastInterface == null) {
     if (other._multicastInterface != null) return false;
   } else if (!_multicastInterface.equals(other._multicastInterface)) return false;
   if (_multicastTTL == null) {
     if (other._multicastTTL != null) return false;
   } else if (!_multicastTTL.equals(other._multicastTTL)) return false;
   if (_lifetime == null) {
     if (other._lifetime != null) return false;
   } else if (!_lifetime.equals(other._lifetime)) return false;
   return true;
 }