com.sun.tools.javac.util.List.equals()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(92)

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

List.equals介绍

[英]Are the two lists the same?
[中]这两张名单是一样的吗?

代码示例

代码示例来源:origin: google/error-prone

@Override
public boolean equals(Object o) {
 if (o == this) {
  return true;
 }
 if (o instanceof UPlaceholderStatement.ConsumptionState) {
  UPlaceholderStatement.ConsumptionState that = (UPlaceholderStatement.ConsumptionState) o;
  return (this.consumedStatements == that.consumedStatements())
     && (this.placeholderImplInReverseOrder.equals(that.placeholderImplInReverseOrder()));
 }
 return false;
}

代码示例来源:origin: google/error-prone

@Override
public boolean equals(Object o) {
 if (o == this) {
  return true;
 }
 if (o instanceof PlaceholderUnificationVisitor.State) {
  PlaceholderUnificationVisitor.State<?> that = (PlaceholderUnificationVisitor.State<?>) o;
  return (this.seenParameters.equals(that.seenParameters()))
     && (this.unifier.equals(that.unifier()))
     && ((this.result == null) ? (that.result() == null) : this.result.equals(that.result()));
 }
 return false;
}

代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac

public boolean equals(Object obj) {
  return types != null &&
    obj instanceof MirroredTypesExceptionProxy &&
    types.equals(
     ((MirroredTypesExceptionProxy) obj).types);
}

代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac

public boolean equals(Object obj) {
  return types != null &&
      obj instanceof MirroredTypesExceptionProxy &&
      types.equals(
       ((MirroredTypesExceptionProxy) obj).types);
}

代码示例来源:origin: sc.fiji/javac

public boolean equals(Object obj) {
  return types != null &&
      obj instanceof MirroredTypesExceptionProxy &&
      types.equals(
       ((MirroredTypesExceptionProxy) obj).types);
}

代码示例来源:origin: konsoletyper/teavm-javac

public boolean equals(Object obj) {
  return types != null &&
      obj instanceof MirroredTypesExceptionProxy &&
      types.equals(
       ((MirroredTypesExceptionProxy) obj).types);
}

代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac

/** Is this list the same as other list?
 *  @see java.util.List#equals
 */
@Override
public boolean equals(Object other) {
if (other instanceof List<?>)
    return equals(this, (List<?>)other);
  if (other instanceof java.util.List<?>) {
    List<A> t = this;
    Iterator<?> oIter = ((java.util.List<?>) other).iterator();
    while (t.tail != null && oIter.hasNext()) {
      Object o = oIter.next();
      if ( !(t.head == null ? o == null : t.head.equals(o)))
        return false;
      t = t.tail;
    }
    return (t.isEmpty() && !oIter.hasNext());
  }
  return false;
}

代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac

/** Is this list the same as other list?
 *  @see java.util.List#equals
 */
@Override
public boolean equals(Object other) {
  if (other instanceof List<?>)
    return equals(this, (List<?>)other);
  if (other instanceof java.util.List<?>) {
    List<A> t = this;
    Iterator<?> oIter = ((java.util.List<?>) other).iterator();
    while (t.tail != null && oIter.hasNext()) {
      Object o = oIter.next();
      if ( !(t.head == null ? o == null : t.head.equals(o)))
        return false;
      t = t.tail;
    }
    return (t.isEmpty() && !oIter.hasNext());
  }
  return false;
}

代码示例来源:origin: sc.fiji/javac

/** Is this list the same as other list?
 *  @see java.util.List#equals
 */
@Override
public boolean equals(Object other) {
  if (other instanceof List<?>)
    return equals(this, (List<?>)other);
  if (other instanceof java.util.List<?>) {
    List<A> t = this;
    Iterator<?> oIter = ((java.util.List<?>) other).iterator();
    while (t.tail != null && oIter.hasNext()) {
      Object o = oIter.next();
      if ( !(t.head == null ? o == null : t.head.equals(o)))
        return false;
      t = t.tail;
    }
    return (t.isEmpty() && !oIter.hasNext());
  }
  return false;
}

代码示例来源:origin: konsoletyper/teavm-javac

/** Is this list the same as other list?
 *  @see java.util.List#equals
 */
@Override
public boolean equals(Object other) {
  if (other instanceof List<?>)
    return equals(this, (List<?>)other);
  if (other instanceof java.util.List<?>) {
    List<A> t = this;
    Iterator<?> oIter = ((java.util.List<?>) other).iterator();
    while (t.tail != null && oIter.hasNext()) {
      Object o = oIter.next();
      if ( !(t.head == null ? o == null : t.head.equals(o)))
        return false;
      t = t.tail;
    }
    return (t.isEmpty() && !oIter.hasNext());
  }
  return false;
}

代码示例来源:origin: com.google.errorprone/error_prone_core

@Override
public boolean equals(Object o) {
 if (o == this) {
  return true;
 }
 if (o instanceof UPlaceholderStatement.ConsumptionState) {
  UPlaceholderStatement.ConsumptionState that = (UPlaceholderStatement.ConsumptionState) o;
  return (this.consumedStatements == that.consumedStatements())
     && (this.placeholderImplInReverseOrder.equals(that.placeholderImplInReverseOrder()));
 }
 return false;
}

代码示例来源:origin: com.google.errorprone/error_prone_core

@Override
public boolean equals(Object o) {
 if (o == this) {
  return true;
 }
 if (o instanceof PlaceholderUnificationVisitor.State) {
  PlaceholderUnificationVisitor.State<?> that = (PlaceholderUnificationVisitor.State<?>) o;
  return (this.seenParameters.equals(that.seenParameters()))
     && (this.unifier.equals(that.unifier()))
     && ((this.result == null) ? (that.result() == null) : this.result.equals(that.result()));
 }
 return false;
}

相关文章