org.apache.geronimo.kernel.repository.Version.equals()方法的使用及代码示例

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

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

Version.equals介绍

暂无

代码示例

代码示例来源:origin: org.apache.geronimo.framework/geronimo-plugin

public boolean equals(Object other) {
  if (super.equals(other)) {
    if (other instanceof SnapshotVersion) {
      SnapshotVersion v = (SnapshotVersion) other;
      if (buildNumber == null ? v.buildNumber != null : !buildNumber.equals(v.buildNumber)) {
        return false;
      }
      if (timestamp == null ? v.timestamp != null : !timestamp.equals(v.timestamp)) {
        return false;
      }
      return true;
    }
  }
  return false;
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-kernel

public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  final Artifact artifact = (Artifact) o;
  if (!artifactId.equals(artifact.artifactId)) {
    return false;
  }
  if (groupId != null ? !groupId.equals(artifact.groupId) : artifact.groupId != null) {
    return false;
  }
  if (type != null ? !type.equals(artifact.type) : artifact.type != null) {
    return false;
  }
  return !(version != null ? !version.equals(artifact.version) : artifact.version != null);
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-kernel

/**
   * see if this artifact matches the other artifact (which is more specific than this one)
   *
   * @param otherArtifact the more specific artifact we are comparing with
   * @return whether the other artifact is consistent with everything specified in this artifact.
   */
  public boolean matches(Artifact otherArtifact) {
    if (groupId != null && !groupId.equals(otherArtifact.groupId)) {
      return false;
    }
    if (artifactId != null && !artifactId.equals(otherArtifact.artifactId)) {
      return false;
    }
    if (version != null && !version.equals(otherArtifact.version)) {
      return false;
    }
    return (type == null || type.equals(otherArtifact.type));
  }
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-kernel

continue;
if(targetVersion != null && !targetVersion.equals(candidate.getVersion())) {
  continue;

代码示例来源:origin: org.apache.geronimo.modules/geronimo-deploy-jsr88

if(configID.getGroupId().equals(artifact.getGroupId()) &&
    configID.getArtifactId().equals(artifact.getArtifactId()) &&
    configID.getVersion().equals(artifact.getVersion())) {
  redeploySameConfiguration(configurationManager, artifact, module.getTarget());
} else {

相关文章