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

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

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

LinkedHashSet.equals介绍

暂无

代码示例

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

public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  Matcher matcher = (Matcher) o;
  return matchers.equals(matcher.matchers);
}

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

@Override
public boolean equals(Object other) {
 if (other == this) {
  return true;
 }
 if (!(other instanceof LinkedResultSet)) {
  return false;
 }
 if (!this.elementType.equals(((LinkedResultSet) other).elementType)) {
  return false;
 }
 return super.equals(other);
}

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

@Override
public boolean equals(Object o) {
  if (o == null) {
    return false;
  }
  if (o.getClass() != this.getClass()) {
    return false;
  }
  CompoundMatcher m = (CompoundMatcher) o;
  return children.equals(m.children);
}

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

@Override
public boolean equals(Object other) {
 return other instanceof SortedStructSet
   && this.structType.equals(((SortedStructSet) other).structType) && super.equals(other);
}

代码示例来源:origin: prestodb/presto

@Override
public boolean equals(Object obj)
{
  if (!(obj instanceof MultiJoinNode)) {
    return false;
  }
  MultiJoinNode other = (MultiJoinNode) obj;
  return this.sources.equals(other.sources)
      && ImmutableSet.copyOf(extractConjuncts(this.filter)).equals(ImmutableSet.copyOf(extractConjuncts(other.filter)))
      && this.outputSymbols.equals(other.outputSymbols);
}

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

@Override
public boolean equals(Object obj) {
  if (obj instanceof ExecutionConfig) {
    ExecutionConfig other = (ExecutionConfig) obj;
    return other.canEqual(this) &&
      Objects.equals(executionMode, other.executionMode) &&
      useClosureCleaner == other.useClosureCleaner &&
      parallelism == other.parallelism &&
      ((restartStrategyConfiguration == null && other.restartStrategyConfiguration == null) ||
        (null != restartStrategyConfiguration && restartStrategyConfiguration.equals(other.restartStrategyConfiguration))) &&
      forceKryo == other.forceKryo &&
      disableGenericTypes == other.disableGenericTypes &&
      objectReuse == other.objectReuse &&
      autoTypeRegistrationEnabled == other.autoTypeRegistrationEnabled &&
      forceAvro == other.forceAvro &&
      Objects.equals(codeAnalysisMode, other.codeAnalysisMode) &&
      printProgressDuringExecution == other.printProgressDuringExecution &&
      Objects.equals(globalJobParameters, other.globalJobParameters) &&
      autoWatermarkInterval == other.autoWatermarkInterval &&
      registeredTypesWithKryoSerializerClasses.equals(other.registeredTypesWithKryoSerializerClasses) &&
      defaultKryoSerializerClasses.equals(other.defaultKryoSerializerClasses) &&
      registeredKryoTypes.equals(other.registeredKryoTypes) &&
      registeredPojoTypes.equals(other.registeredPojoTypes) &&
      taskCancellationIntervalMillis == other.taskCancellationIntervalMillis &&
      useSnapshotCompression == other.useSnapshotCompression &&
      defaultInputDependencyConstraint == other.defaultInputDependencyConstraint;
  } else {
    return false;
  }
}

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

return false;
if (linkedHashSet != null ? !linkedHashSet.equals(obj.linkedHashSet) : obj.linkedHashSet != null)
  return false;

代码示例来源:origin: ebean-orm/ebean

/**
 * Return true if the properties are the same for autoTune purposes.
 */
boolean isSameByAutoTune(OrmQueryProperties p2) {
 if (included == null) {
  return p2 == null || p2.included == null;
 } else if (p2 == null) {
  return false;
 }
 return included.equals(p2.included);
}

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

return false;
else if (!linkedHashSet.equals(other.linkedHashSet))
  return false;
if (linkedList == null)

代码示例来源:origin: forcedotcom/phoenix

@Override
public boolean equals(Object obj) {
  if (this == obj) return true;
  if (obj == null) return false;
  if (getClass() != obj.getClass()) return false;
  InListExpression other = (InListExpression)obj;
  if (containsNull != other.containsNull) return false;
  if (!values.equals(other.values)) return false;
  return true;
}

代码示例来源:origin: jamesagnew/hapi-fhir

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  TagList other = (TagList) obj;
  if (myTagSet == null) {
    if (other.myTagSet != null)
      return false;
  } else if (!myTagSet.equals(other.myTagSet))
    return false;
  return true;
}

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

/** Compares the specified object with this set for equality. */
@Override
public boolean equals(Object o) {
  synchronized (getLock()) {
    return super.equals(o);
  }
}

代码示例来源:origin: crashub/crash

if (!current.equals(bilto)) {
 if (table.getRows().size() > 0) {
  renderers.add(table.renderer());

代码示例来源:origin: org.glassfish.hk2/auto-depends

@Override
public boolean equals(Object another) {
 if (ClassPath.class.isInstance(another)) {
  return expandedClassPathEntries.equals(((ClassPath)another).expandedClassPathEntries);
 }
 return false;
}

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

@Override
public boolean equals(Object obj) {
  if (obj != null && obj.getClass() == SetQueue.class) {
    return set.equals(((SetQueue<?>) obj).set);
  }
  else {
    return false;
  }
}

代码示例来源:origin: com.alibaba.blink/flink-runtime

@Override
public boolean equals(Object obj) {
  if (obj != null && obj.getClass() == SetQueue.class) {
    return set.equals(((SetQueue<?>) obj).set);
  }
  else {
    return false;
  }
}

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

@Override
public boolean equals(Object obj) {
  if (obj != null && obj.getClass() == SetQueue.class) {
    return set.equals(((SetQueue<?>) obj).set);
  }
  else {
    return false;
  }
}

代码示例来源:origin: com.google.code.findbugs/findbugs

@Override
public boolean equals(Object o) {
  if (o == null) {
    return false;
  }
  if (o.getClass() != this.getClass()) {
    return false;
  }
  CompoundMatcher m = (CompoundMatcher) o;
  return children.equals(m.children);
}

代码示例来源:origin: org.wikimodel/org.wikimodel.wem

/**
 * @see java.lang.Object#equals(java.lang.Object)
 */
@Override
public boolean equals(Object obj) {
  if (obj == this)
    return true;
  if (!(obj instanceof WikiFormat))
    return false;
  WikiFormat set = (WikiFormat) obj;
  return fStyles.equals(set.fStyles) && fParams.equals(set.fParams);
}

代码示例来源:origin: com.github.dakusui/jcunit

public Builder add(Tuple tuple) {
 ////
 // Make sure all the tuples in this suite object have the same set of attribute
 // names.
 FrameworkException.check(tuple, (Tuple t) -> attributeNames.equals(tuple.keySet()));
 this.tuples.add(tuple);
 return this;
}

相关文章