org.apache.isis.applib.Identifier.equals()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(85)

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

Identifier.equals介绍

[英]REVIEW: why not just compare the #toString() representations?
[中]回顾:为什么不比较#toString()表示法呢?

代码示例

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

public boolean equals(final Identifier other) {
  return equals(other.className, className) && equals(other.memberName, other.memberName) && equals(other.parameterNames, parameterNames);
}

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

/**
 * REVIEW: why not just compare the {@link #toString()} representations?
 */
@Override
public boolean equals(final Object obj) {
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof Identifier)) {
    return false;
  }
  final Identifier other = (Identifier) obj;
  return equals(other);
}

代码示例来源:origin: org.apache.isis/applib

/**
 * REVIEW: why not just compare the {@link #toString()} representations?
 */
@Override
public boolean equals(final Object obj) {
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof Identifier)) {
    return false;
  }
  final Identifier other = (Identifier) obj;
  return equals(other);
}

代码示例来源:origin: org.apache.isis/applib

public boolean equals(final Identifier other) {
  return equals(other.className, className) && equals(other.memberName, other.memberName) && equals(other.parameterNames, parameterNames);
}

相关文章