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

x33g5p2x  于2022-01-29 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(220)

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

Stack.equals介绍

暂无

代码示例

代码示例来源:origin: Sable/soot

  1. if (!stackHeightsBefore.get(u).equals(stackHeightsBefore.get(v))) {
  2. break;

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

  1. return false;
  2. else if (!stack.equals(other.stack))
  3. return false;
  4. if (treeSet == null)

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof LP_NL_O_OB_P_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final LP_NL_O_OB_P_S_SE_SL_Traverser<?> that = (LP_NL_O_OB_P_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof B_LP_NL_O_P_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final B_LP_NL_O_P_S_SE_SL_Traverser<?> that = (B_LP_NL_O_P_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof NL_O_OB_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final NL_O_OB_S_SE_SL_Traverser<?> that = (NL_O_OB_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof B_NL_O_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final B_NL_O_S_SE_SL_Traverser<?> that = (B_NL_O_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof B_LP_NL_O_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final B_LP_NL_O_S_SE_SL_Traverser<?> that = (B_LP_NL_O_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof LP_NL_O_OB_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final LP_NL_O_OB_S_SE_SL_Traverser<?> that = (LP_NL_O_OB_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

代码示例来源:origin: com.pragmaticobjects.oo.atom/atom-basis

  1. @Override
  2. public boolean equals(Object obj) {
  3. if(obj instanceof MethodVisitorRecorder) {
  4. MethodVisitorRecorder mvr = (MethodVisitorRecorder) obj;
  5. return mvr.recordedCalls.equals(this.recordedCalls);
  6. } else {
  7. return false;
  8. }
  9. }

代码示例来源:origin: de.mpg.mpi-inf/javatools

  1. /** Returns TRUE if the two call stacks have the same elements*/
  2. @Override
  3. public boolean equals(Object o) {
  4. return (o instanceof CallStack && ((CallStack) o).callstack.equals(callstack));
  5. }

代码示例来源:origin: yahoo/elide

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) {
  4. return true;
  5. }
  6. if (!(o instanceof PathMetaData)) {
  7. return false;
  8. }
  9. PathMetaData that = (PathMetaData) o;
  10. return lineage.equals(that.lineage)
  11. && name.equals(that.name)
  12. && type.equals(that.type);
  13. }

代码示例来源:origin: itext/itext7

  1. @Override
  2. public boolean equals(Object obj) {
  3. return obj.getClass() == getClass()
  4. && outDocument.equals(((TrailerPath) obj).outDocument)
  5. && cmpDocument.equals(((TrailerPath) obj).cmpDocument)
  6. && path.equals(((ObjectPath) obj).path);
  7. }

代码示例来源:origin: itext/itext7

  1. @Override
  2. public boolean equals(Object obj) {
  3. return obj.getClass() == getClass() && baseCmpObject.equals(((ObjectPath) obj).baseCmpObject) && baseOutObject.equals(((ObjectPath) obj).baseOutObject) &&
  4. path.equals(((ObjectPath) obj).path);
  5. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof LP_NL_O_OB_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final LP_NL_O_OB_S_SE_SL_Traverser<?> that = (LP_NL_O_OB_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

代码示例来源:origin: com.itextpdf/itextg

  1. @Override
  2. public boolean equals(Object obj) {
  3. return obj instanceof ObjectPath && baseCmpObject.equals(((ObjectPath) obj).baseCmpObject) && baseOutObject.equals(((ObjectPath) obj).baseOutObject) &&
  4. path.equals(((ObjectPath) obj).path);
  5. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof B_NL_O_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final B_NL_O_S_SE_SL_Traverser<?> that = (B_NL_O_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

代码示例来源:origin: com.itextpdf/itextpdf

  1. @Override
  2. public boolean equals(Object obj) {
  3. return obj instanceof ObjectPath && baseCmpObject.equals(((ObjectPath) obj).baseCmpObject) && baseOutObject.equals(((ObjectPath) obj).baseOutObject) &&
  4. path.equals(((ObjectPath) obj).path);
  5. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof NL_O_OB_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final NL_O_OB_S_SE_SL_Traverser<?> that = (NL_O_OB_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof B_LP_NL_O_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final B_LP_NL_O_S_SE_SL_Traverser<?> that = (B_LP_NL_O_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

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

  1. @Override
  2. public boolean equals(final Object o) {
  3. if (this == o) return true;
  4. if (!(o instanceof B_LP_NL_O_P_S_SE_SL_Traverser)) return false;
  5. if (!super.equals(o)) return false;
  6. final B_LP_NL_O_P_S_SE_SL_Traverser<?> that = (B_LP_NL_O_P_S_SE_SL_Traverser<?>) o;
  7. if (!this.nestedLoops.equals(that.nestedLoops)) return false;
  8. return this.loopNames != null ? this.loopNames.equals(that.loopNames) : that.loopNames == null;
  9. }

相关文章