java.util.concurrent.ConcurrentHashMap.equals()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中java.util.concurrent.ConcurrentHashMap.equals()方法的一些代码示例,展示了ConcurrentHashMap.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConcurrentHashMap.equals()方法的具体详情如下:
包路径:java.util.concurrent.ConcurrentHashMap
类名称:ConcurrentHashMap
方法名:equals

ConcurrentHashMap.equals介绍

暂无

代码示例

代码示例来源:origin: apache/incubator-dubbo

@Override
public boolean equals(Object obj) {
  return delegateMap.equals(obj);
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public boolean equals(Object obj) {
  return delegateMap.equals(obj);
}

代码示例来源:origin: ben-manes/caffeine

@Override
public boolean equals(Object o) {
 return data.equals(o);
}

代码示例来源:origin: deeplearning4j/nd4j

@Override
public boolean equals(Object o){
  if(!(o instanceof Counter))
    return false;
  Counter c2 = (Counter)o;
  return map.equals(c2.map);
}

代码示例来源:origin: killme2008/Metamorphosis

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj instanceof Cluster) {
    Cluster other = (Cluster) obj;
    return this.brokers.equals(other.brokers);
  }
  return false;
}

代码示例来源:origin: oracle/helidon

@Override
public boolean equals(Object o) {
  return super.equals(o);
}

代码示例来源:origin: wildfly/wildfly

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

代码示例来源:origin: apache/geode

(ConcurrentHashMap<Integer, Set<DistributionLocatorId>>) locatorListener
    .getAllLocatorsInfo();
if (!allLocators.equals(locators)) {
 for (Map.Entry<Integer, Set<DistributionLocatorId>> entry : locators.entrySet()) {
  Set<DistributionLocatorId> existingValue = allLocators.putIfAbsent(entry.getKey(),

代码示例来源:origin: wildfly/wildfly

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

代码示例来源:origin: com.github.ben-manes.caffeine/caffeine

@Override
public boolean equals(Object o) {
 return data.equals(o);
}

代码示例来源:origin: protostuff/protostuff

return false;
else if (!concurrentHashMap.equals(other.concurrentHashMap))
  return false;
if (concurrentMap == null)

代码示例来源:origin: protostuff/protostuff

return false;
else if (!concurrentHashMap.equals(other.concurrentHashMap))
  return false;
if (concurrentSkipListMap == null)

代码示例来源:origin: org.apache.mina/mina-core

/**
 * {@inheritDoc}
 */
@Override
public boolean equals(Object obj) {
  return delegate.equals(obj);
}

代码示例来源:origin: io.snappydata/gemfire-core

@SuppressWarnings("unchecked")
@Override
public boolean equals(Object o) {
 return (o == this) || ((o instanceof WeakConcurrentIdentityHashMap) &&
   backingStore.equals(((WeakConcurrentIdentityHashMap)o).backingStore));
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

@Override
public boolean replace(K key, V oldValue, V newValue) {
  if (equals(oldValue, delegate.get(key))) {
    delegate.put(key, newValue);
    return true;
  } else {
    return false;
  }
}

代码示例来源:origin: org.ow2.carol.cmi/cmi-lb

@Override
public boolean equals(final Object object) {
  if(object == null || !(object instanceof LBPolicyData)) {
    return false;
  }
  LBPolicyData lbPolicyData = (LBPolicyData) object;
  return policyType.equals(lbPolicyData.policyType)
    && strategyType.equals(lbPolicyData.strategyType)
    && properties.equals(lbPolicyData.properties)
    && dateOfProperties == lbPolicyData.dateOfProperties;
}

代码示例来源:origin: org.ow2.cmi/cmi-lb

@Override
public boolean equals(final Object object) {
  if(object == null || !(object instanceof PolicyData)) {
    return false;
  }
  PolicyData lbPolicyData = (PolicyData) object;
  return policyType.equals(lbPolicyData.policyType)
    && strategyType.equals(lbPolicyData.strategyType)
    && properties.equals(lbPolicyData.properties)
    && dateOfProperties == lbPolicyData.dateOfProperties;
}

代码示例来源:origin: jtulach/bck2brwsr

@Override
public boolean remove(Object key, Object value) {
  if (equals(value, delegate.get(key))) {
    delegate.remove(key);
    return true;
  } else {
    return false;
  }
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

@Override
public boolean remove(Object key, Object value) {
  if (equals(value, delegate.get(key))) {
    delegate.remove(key);
    return true;
  } else {
    return false;
  }
}

代码示例来源:origin: jtulach/bck2brwsr

@Override
public boolean replace(K key, V oldValue, V newValue) {
  if (equals(oldValue, delegate.get(key))) {
    delegate.put(key, newValue);
    return true;
  } else {
    return false;
  }
}

相关文章