示例#1
1
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof FlashMap)) return false;

    FlashMap flashMap = (FlashMap) o;

    return old.equals(flashMap.old) && young.equals(flashMap.young);
  }
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    FileTypeAssocTable<?> that = (FileTypeAssocTable) o;
    return myExtensionMappings.equals(that.myExtensionMappings)
        && myMatchingMappings.equals(that.myMatchingMappings)
        && myExactFileNameMappings.equals(that.myExactFileNameMappings)
        && myExactFileNameAnyCaseMappings.equals(that.myExactFileNameAnyCaseMappings);
  }
示例#3
1
  static void serTest(Map s, int size) throws Exception {
    if (!(s instanceof Serializable)) return;
    System.out.print("Serialize              : ");

    for (int i = 0; i < size; i++) {
      s.put(new Integer(i), Boolean.TRUE);
    }

    long startTime = System.currentTimeMillis();

    FileOutputStream fs = new FileOutputStream("MapCheck.dat");
    ObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(fs));
    out.writeObject(s);
    out.close();

    FileInputStream is = new FileInputStream("MapCheck.dat");
    ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(is));
    Map m = (Map) in.readObject();

    long endTime = System.currentTimeMillis();
    long time = endTime - startTime;

    System.out.print(time + "ms");

    if (s instanceof IdentityHashMap) return;
    reallyAssert(s.equals(m));
  }
示例#4
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Node other = (Node) obj;
   if (_chefType == null) {
     if (other._chefType != null) return false;
   } else if (!_chefType.equals(other._chefType)) return false;
   if (_jsonClass == null) {
     if (other._jsonClass != null) return false;
   } else if (!_jsonClass.equals(other._jsonClass)) return false;
   if (automatic == null) {
     if (other.automatic != null) return false;
   } else if (!automatic.equals(other.automatic)) return false;
   if (defaultA == null) {
     if (other.defaultA != null) return false;
   } else if (!defaultA.equals(other.defaultA)) return false;
   if (name == null) {
     if (other.name != null) return false;
   } else if (!name.equals(other.name)) return false;
   if (normal == null) {
     if (other.normal != null) return false;
   } else if (!normal.equals(other.normal)) return false;
   if (override == null) {
     if (other.override != null) return false;
   } else if (!override.equals(other.override)) return false;
   if (runList == null) {
     if (other.runList != null) return false;
   } else if (!runList.equals(other.runList)) return false;
   if (chefEnvironment == null) {
     if (other.chefEnvironment != null) return false;
   } else if (!chefEnvironment.equals(other.chefEnvironment)) return false;
   return true;
 }
示例#5
0
  /**
   * Checks if the new fields are equal
   *
   * @param other
   * @return
   */
  private boolean areNewFieldsEqual(Request<?> other) {
    if (!areOldFieldsEqual(other)) {
      return false;
    }
    if (_baseUriTemplate != null
        ? !_baseUriTemplate.equals(other._baseUriTemplate)
        : other._baseUriTemplate != null) {
      return false;
    }
    if (_pathKeys != null ? !_pathKeys.equals(other._pathKeys) : other._pathKeys != null) {
      return false;
    }
    if (_resourceSpec != null
        ? !_resourceSpec.equals(other._resourceSpec)
        : other._resourceSpec != null) {
      return false;
    }
    if (_queryParams != null
        ? !_queryParams.equals(other._queryParams)
        : other._queryParams != null) {
      return false;
    }
    if (_methodName != null ? !_methodName.equals(other._methodName) : other._methodName != null) {
      return false;
    }
    if (_requestOptions != null
        ? !_requestOptions.equals(other._requestOptions)
        : other._requestOptions != null) {
      return false;
    }

    return true;
  }
示例#6
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    InstallOptions that = (InstallOptions) o;

    if (offline != that.offline) return false;
    if (controllerJson != null
        ? !controllerJson.equals(that.controllerJson)
        : that.controllerJson != null) return false;
    if (controllerUrl != null
        ? !controllerUrl.equals(that.controllerUrl)
        : that.controllerUrl != null) return false;
    if (environment != null ? !environment.equals(that.environment) : that.environment != null)
      return false;
    if (!Arrays.equals(excludeDependencyFilterPatterns, that.excludeDependencyFilterPatterns))
      return false;
    if (extractCmd != null ? !extractCmd.equals(that.extractCmd) : that.extractCmd != null)
      return false;
    if (id != null ? !id.equals(that.id) : that.id != null) return false;
    if (jarFiles != null ? !jarFiles.equals(that.jarFiles) : that.jarFiles != null) return false;
    if (!Arrays.equals(jvmOptions, that.jvmOptions)) return false;
    if (mainClass != null ? !mainClass.equals(that.mainClass) : that.mainClass != null)
      return false;
    if (name != null ? !name.equals(that.name) : that.name != null) return false;
    if (!Arrays.equals(optionalDependencyPatterns, that.optionalDependencyPatterns)) return false;
    if (properties != null ? !properties.equals(that.properties) : that.properties != null)
      return false;
    if (url != null ? !url.equals(that.url) : that.url != null) return false;

    return true;
  }
 public void testConstrainedMapLegal() {
   Map<String, Integer> map = Maps.newLinkedHashMap();
   Map<String, Integer> constrained = MapConstraints.constrainedMap(map, TEST_CONSTRAINT);
   map.put(TEST_KEY, TEST_VALUE);
   constrained.put("foo", 1);
   map.putAll(ImmutableMap.of("bar", 2));
   constrained.putAll(ImmutableMap.of("baz", 3));
   assertTrue(map.equals(constrained));
   assertTrue(constrained.equals(map));
   assertEquals(map.entrySet(), constrained.entrySet());
   assertEquals(map.keySet(), constrained.keySet());
   assertEquals(HashMultiset.create(map.values()), HashMultiset.create(constrained.values()));
   assertFalse(map.values() instanceof Serializable);
   assertEquals(map.toString(), constrained.toString());
   assertEquals(map.hashCode(), constrained.hashCode());
   ASSERT
       .that(map.entrySet())
       .has()
       .allOf(
           Maps.immutableEntry(TEST_KEY, TEST_VALUE),
           Maps.immutableEntry("foo", 1),
           Maps.immutableEntry("bar", 2),
           Maps.immutableEntry("baz", 3))
       .inOrder();
 }
示例#8
0
 /* (non-Javadoc)
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   ResponseTime other = (ResponseTime) obj;
   if (businessTransaction == null) {
     if (other.businessTransaction != null) return false;
   } else if (!businessTransaction.equals(other.businessTransaction)) return false;
   if (correlationIds == null) {
     if (other.correlationIds != null) return false;
   } else if (!correlationIds.equals(other.correlationIds)) return false;
   if (details == null) {
     if (other.details != null) return false;
   } else if (!details.equals(other.details)) return false;
   if (duration != other.duration) return false;
   if (fault == null) {
     if (other.fault != null) return false;
   } else if (!fault.equals(other.fault)) return false;
   if (id == null) {
     if (other.id != null) return false;
   } else if (!id.equals(other.id)) return false;
   if (properties == null) {
     if (other.properties != null) return false;
   } else if (!properties.equals(other.properties)) return false;
   if (timestamp != other.timestamp) return false;
   if (type != other.type) return false;
   if (uri == null) {
     if (other.uri != null) return false;
   } else if (!uri.equals(other.uri)) return false;
   return true;
 }
  @Override
  public synchronized boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    GameState other = (GameState) obj;
    if (backBuffer == null) {
      if (other.backBuffer != null) return false;
    } else if (!backBuffer.equals(other.backBuffer)) return false;
    if (epoch != other.epoch) return false;
    if (frontBuffer == null) {
      if (other.frontBuffer != null) return false;
    } else if (!frontBuffer.equals(other.frontBuffer)) return false;
    if (successfulExits != other.successfulExits) return false;
    if (unsuccessfulExits != other.unsuccessfulExits) return false;

    // Compare frontBuffer
    Map<Character, Plane> o = other.getFrontBuffer();
    if (frontBuffer.size() != o.size()) return (false);
    Iterator<Character> it = frontBuffer.keySet().iterator();
    Iterator<Character> it2 = o.keySet().iterator();
    char c1, c2;
    while (it.hasNext()) {
      c1 = it.next();
      c2 = it2.next();
      if (c1 != c2 || !frontBuffer.get(c1).equals(o.get(c2))) return (false);
    }

    // Compare backBuffer
    o = other.getBackBuffer();
    if (backBuffer.size() != o.size()) return (false);
    it = backBuffer.keySet().iterator();
    it2 = o.keySet().iterator();
    while (it.hasNext()) {
      c1 = it.next().charValue();
      c2 = it2.next().charValue();
      if (c1 != c2 || !backBuffer.get(c1).equals(o.get(c2))) return (false);
    }

    // Compare board
    Board b = other.getBoard();
    if (b.getHeight() != board.getHeight()
        || b.getWidth() != board.getWidth()
        || b.getPorts().size() != board.getPorts().size()) return (false);
    it = board.getPorts().keySet().iterator();
    it2 = b.getPorts().keySet().iterator();
    while (it.hasNext()) {
      c1 = it.next().charValue();
      c2 = it.next().charValue();
      if (c1 != c2 || !b.getPorts().get(c1).equals(board.getPorts().get(c2))) return (false);
    }

    return true;
  }
示例#10
0
文件: Message.java 项目: ugli/jocote
 @Override
 public boolean equals(final Object o) {
   if (this == o) return true;
   if (o == null || getClass() != o.getClass()) return false;
   final MessageImpl message = (MessageImpl) o;
   if (id != null ? !id.equals(message.id) : message.id != null) return false;
   if (!Arrays.equals(body, message.body)) return false;
   if (headers != null ? !headers.equals(message.headers) : message.headers != null)
     return false;
   return properties != null
       ? properties.equals(message.properties)
       : message.properties == null;
 }
示例#11
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Settings other = (Settings) obj;
   if (managedSettings == null) {
     if (other.managedSettings != null) return false;
   } else if (!managedSettings.equals(other.managedSettings)) return false;
   if (userSettings == null) {
     if (other.userSettings != null) return false;
   } else if (!userSettings.equals(other.userSettings)) return false;
   return true;
 }
示例#12
0
  public void testEqualsForEqualMap() {
    final Map<K, V> map;
    try {
      map = makePopulatedMap();
    } catch (UnsupportedOperationException e) {
      return;
    }

    assertEquals(map, map);
    assertEquals(makePopulatedMap(), map);
    assertTrue(!map.equals(Collections.emptyMap()));
    // no-inspection ObjectEqualsNull
    assertTrue(!map.equals(null));
  }
示例#13
0
 // 用Eclipse自动生成
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   RouteRule other = (RouteRule) obj;
   if (thenCondition == null) {
     if (other.thenCondition != null) return false;
   } else if (!thenCondition.equals(other.thenCondition)) return false;
   if (whenCondition == null) {
     if (other.whenCondition != null) return false;
   } else if (!whenCondition.equals(other.whenCondition)) return false;
   return true;
 }
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    ThreatTriageConfig that = (ThreatTriageConfig) o;

    if (riskLevelRules != null
        ? !riskLevelRules.equals(that.riskLevelRules)
        : that.riskLevelRules != null) return false;
    if (aggregator != that.aggregator) return false;
    return aggregationConfig != null
        ? aggregationConfig.equals(that.aggregationConfig)
        : that.aggregationConfig == null;
  }
示例#15
0
文件: Event.java 项目: poros/Arianna
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (!super.equals(obj)) return false;
   if (getClass() != obj.getClass()) return false;
   Event other = (Event) obj;
   if (address == null) {
     if (other.address != null) return false;
   } else if (!address.equals(other.address)) return false;
   if (image == null) {
     if (other.image != null) return false;
   } else if (!image.equals(other.image)) return false;
   if (levels == null) {
     if (other.levels != null) return false;
   } else if (!levels.equals(other.levels)) return false;
   if (mail == null) {
     if (other.mail != null) return false;
   } else if (!mail.equals(other.mail)) return false;
   if (name == null) {
     if (other.name != null) return false;
   } else if (!name.equals(other.name)) return false;
   if (phoneNumber == null) {
     if (other.phoneNumber != null) return false;
   } else if (!phoneNumber.equals(other.phoneNumber)) return false;
   return true;
 }
 @Override
 public boolean equals(final Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (obj instanceof DefaultThreadContextMap) {
     final DefaultThreadContextMap other = (DefaultThreadContextMap) obj;
     if (this.useMap != other.useMap) {
       return false;
     }
   }
   if (!(obj instanceof ThreadContextMap)) {
     return false;
   }
   final ThreadContextMap other = (ThreadContextMap) obj;
   final Map<String, String> map = this.localMap.get();
   final Map<String, String> otherMap = other.getImmutableMapOrNull();
   if (map == null) {
     if (otherMap != null) {
       return false;
     }
   } else if (!map.equals(otherMap)) {
     return false;
   }
   return true;
 }
 public boolean check() {
   final Properties oldProps = new Properties();
   if (BindingFileSearch.CACHE_LIST.exists()) {
     try {
       Reader propIn = Files.newReader(BindingFileSearch.CACHE_LIST, Charset.defaultCharset());
       oldProps.load(propIn);
     } catch (Exception ex) {
       LOG.debug(ex, ex);
     }
   }
   Map<String, String> oldBindings = Maps.fromProperties(oldProps);
   Map<String, String> newBindings = Maps.fromProperties(BindingFileSearch.CURRENT_PROPS);
   if (oldBindings.equals(newBindings)) {
     LOG.info("Found up-to-date binding class cache: skipping message binding.");
     return true;
   } else {
     MapDifference<String, String> diffBindings = Maps.difference(oldBindings, newBindings);
     LOG.info("Binding class cache expired (old,new): \n" + diffBindings.entriesDiffering());
     try {
       Files.deleteRecursively(SubDirectory.CLASSCACHE.getFile());
     } catch (IOException ex) {
       LOG.error(ex, ex);
     }
     SubDirectory.CLASSCACHE.getFile().mkdir();
     return false;
   }
 }
示例#18
0
  @Override
  public boolean equals(Object obj) {
    if (!softEquals(obj)) {
      return false;
    }

    if (obj instanceof RecordRvtImpl) {
      return equals(((RecordRvtImpl) obj).getRecord());
    }
    if (obj instanceof IdRecordImpl) {
      return softEquals(((IdRecordImpl) obj).getRecord());
    }

    RecordImpl other = (RecordImpl) obj;

    if (recordTypes == null) {
      if (other.recordTypes != null) {
        return false;
      }
    } else if (!recordTypes.equals(other.recordTypes)) {
      return false;
    }

    if (version == null) {
      if (other.version != null) {
        return false;
      }
    } else if (!version.equals(other.version)) {
      return false;
    }

    return true;
  }
示例#19
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof ServerInfo)) return false;
    if (!super.equals(o)) return false;

    ServerInfo that = (ServerInfo) o;

    if (cpu != that.cpu) return false;
    if (cpusInsteadOfCores != that.cpusInsteadOfCores) return false;
    if (enableNuma != that.enableNuma) return false;
    if (hvRelaxed != that.hvRelaxed) return false;
    if (hvTsc != that.hvTsc) return false;
    if (smp != that.smp) return false;
    if (drives != null ? !drives.equals(that.drives) : that.drives != null) return false;
    if (memory != null ? !memory.equals(that.memory) : that.memory != null) return false;
    if (meta != null ? !meta.equals(that.meta) : that.meta != null) return false;
    if (nics != null ? !nics.equals(that.nics) : that.nics != null) return false;
    if (requirements != null ? !requirements.equals(that.requirements) : that.requirements != null)
      return false;
    if (tags != null ? !tags.equals(that.tags) : that.tags != null) return false;
    if (vncPassword != null ? !vncPassword.equals(that.vncPassword) : that.vncPassword != null)
      return false;

    return true;
  }
  private PolicyUnit compareToDB(
      List<PolicyUnit> dbEnteries,
      ExternalSchedulerDiscoveryUnit discoveryUnit,
      PolicyUnitType type) {
    for (PolicyUnit policyUnit : dbEnteries) {
      if (policyUnit.isInternal()) {
        continue;
      }

      if (policyUnit.getPolicyUnitType() != type) {
        continue;
      }

      if (!policyUnit.getName().equals(discoveryUnit.getName())) {
        continue;
      }

      Map<String, String> discoveryPropMap =
          StringUtils.isEmpty(discoveryUnit.getRegex())
              ? new LinkedHashMap<String, String>()
              : SimpleCustomPropertiesUtil.getInstance()
                  .convertProperties(discoveryUnit.getRegex());
      if (!discoveryPropMap.equals(policyUnit.getParameterRegExMap())
          || !discoveryUnit.getDescription().equals(policyUnit.getDescription())
          || !policyUnit.isEnabled()) {
        sendToDb(discoveryUnit, policyUnit.getId(), type);
      }

      return policyUnit;
    }
    sendToDb(discoveryUnit, null, type);
    return null;
  }
 /* (non-Javadoc)
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   JavaMethodParameter other = (JavaMethodParameter) obj;
   if (annotations == null) {
     if (other.annotations != null) {
       return false;
     }
   } else if (!annotations.equals(other.annotations)) {
     return false;
   }
   if (name == null) {
     if (other.name != null) {
       return false;
     }
   } else if (!name.equals(other.name)) {
     return false;
   }
   if (type == null) {
     if (other.type != null) {
       return false;
     }
   } else if (!type.equals(other.type)) {
     return false;
   }
   return true;
 }
示例#22
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   URL other = (URL) obj;
   if (host == null) {
     if (other.host != null) return false;
   } else if (!host.equals(other.host)) return false;
   if (parameters == null) {
     if (other.parameters != null) return false;
   } else if (!parameters.equals(other.parameters)) return false;
   if (password == null) {
     if (other.password != null) return false;
   } else if (!password.equals(other.password)) return false;
   if (path == null) {
     if (other.path != null) return false;
   } else if (!path.equals(other.path)) return false;
   if (port != other.port) return false;
   if (protocol == null) {
     if (other.protocol != null) return false;
   } else if (!protocol.equals(other.protocol)) return false;
   if (username == null) {
     if (other.username != null) return false;
   } else if (!username.equals(other.username)) return false;
   return true;
 }
示例#23
0
  public void assertEqualMaps(String string, Map map1, Map map2) {
    Set additionalKeys = new HashSet(map1.keySet());

    if (!map1.equals(map2)) {
      for (Iterator i = map1.entrySet().iterator(); i.hasNext(); ) {
        Map.Entry entry = (Map.Entry) i.next();
        Object key = entry.getKey();
        Object value = entry.getValue();
        Object otherValue = map2.get(key);

        if (otherValue == null) {
          System.err.println("map2 missing: " + key);
        } else {
          additionalKeys.remove(key);

          if (!value.equals(otherValue)) {
            System.err.println(
                "values don't match for: " + key + ", map1=" + value + ", map2=" + otherValue);
          }
        }
      }

      for (Iterator i = additionalKeys.iterator(); i.hasNext(); ) {
        String key = (String) i.next();
        System.err.println("map2 has additional keys: " + key + " -> " + map2.get(key));
      }
    }

    assertEquals(string, map1, map2);
  }
示例#24
0
 /*
  * (non-Javadoc)
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(final Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (!(obj instanceof MapData)) {
     return false;
   }
   final MapData other = (MapData) obj;
   if (data == null) {
     if (other.data != null) {
       return false;
     }
   } else if (!data.equals(other.data)) {
     return false;
   }
   if (type == null) {
     if (other.type != null) {
       return false;
     }
   } else if (!type.equals(other.type)) {
     return false;
   }
   if (version == null) {
     if (other.version != null) {
       return false;
     }
   } else if (!version.equals(other.version)) {
     return false;
   }
   return true;
 }
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    ProposerContextImpl that = (ProposerContextImpl) o;

    if (bookedInstances != null
        ? !bookedInstances.equals(that.bookedInstances)
        : that.bookedInstances != null) {
      return false;
    }
    if (paxosInstances != null
        ? !paxosInstances.equals(that.paxosInstances)
        : that.paxosInstances != null) {
      return false;
    }
    if (pendingValues != null
        ? !pendingValues.equals(that.pendingValues)
        : that.pendingValues != null) {
      return false;
    }

    return true;
  }
  @Override
  public IScriptEvaluationContext getEvaluationContext(
      IScriptEvaluationContext evaluationContext, Map<String, Object> localVariables) {
    if (evaluationContext == null) {
      evaluationContext = getGlobalEvaluationContext();
    }
    if (localVariables != null) {
      /*
       * Look up an existing context with the same variables.
       */
      for (final IScriptEvaluationContext cc : evaluationContext.getChildren()) {
        if (localVariables.equals(cc.getVariables().map())) return cc;
      }

      /*
       * Create new context
       */
      final IScriptEvaluationContext ec =
          IScriptEngineFactory.eINSTANCE.createScriptEvaluationContext();
      ec.setParent(evaluationContext);
      ec.getVariables().putAll(localVariables);

      evaluationContext = ec;
    }

    return evaluationContext;
  }
示例#27
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Person other = (Person) obj;
   if (age != other.age) return false;
   if (cal == null) {
     if (other.cal != null) return false;
   } else if (!cal.equals(other.cal)) return false;
   if (map == null) {
     if (other.map != null) return false;
   } else if (!map.equals(other.map)) return false;
   if (name == null) {
     if (other.name != null) return false;
   } else if (!name.equals(other.name)) return false;
   if (nullTest == null) {
     if (other.nullTest != null) return false;
   } else if (!nullTest.equals(other.nullTest)) return false;
   if (pet == null) {
     if (other.pet != null) return false;
   } else if (!pet.equals(other.pet)) return false;
   if (someDate == null) {
     if (other.someDate != null) return false;
   } else if (!someDate.equals(other.someDate)) return false;
   return true;
 }
示例#28
0
  @Override
  public boolean equals(final Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    final JarPluginProviderLoader that = (JarPluginProviderLoader) o;

    if (classCache != null ? !classCache.equals(that.classCache) : that.classCache != null) {
      return false;
    }
    if (!pluginJar.equals(that.pluginJar)) {
      return false;
    }
    if (mainAttributes != null
        ? !mainAttributes.equals(that.mainAttributes)
        : that.mainAttributes != null) {
      return false;
    }
    if (pluginProviderDefs != null
        ? !pluginProviderDefs.equals(that.pluginProviderDefs)
        : that.pluginProviderDefs != null) {
      return false;
    }

    return true;
  }
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }

    if (!(o instanceof InterceptorConfig)) {
      return false;
    }

    final InterceptorConfig interceptorConfig = (InterceptorConfig) o;

    if ((className != null)
        ? (!className.equals(interceptorConfig.className))
        : (interceptorConfig.className != null)) {
      return false;
    }

    if ((name != null)
        ? (!name.equals(interceptorConfig.name))
        : (interceptorConfig.name != null)) {
      return false;
    }

    if ((params != null)
        ? (!params.equals(interceptorConfig.params))
        : (interceptorConfig.params != null)) {
      return false;
    }

    return true;
  }
示例#30
0
文件: Tuple.java 项目: etcinitd/jalf
 @Override
 public boolean equals(Object o) {
   if (this == o) return true;
   if (o == null || getClass() != o.getClass()) return false;
   Tuple tuple = (Tuple) o;
   return attrs.equals(tuple.attrs);
 }