gpt4 book ai didi

pl.edu.icm.yadda.service2.YaddaObjectID.equals()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 12:52:40 28 4
gpt4 key购买 nike

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

YaddaObjectID.equals介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.yadda/bwmeta-process

/**
 * Checks whether two operations should be merged.
 * @param sourceOp
 * @param newOp
 * @return true if two operations should be merged, false otherwise
 */
protected boolean shouldBeMerged(EditorOperation sourceOp, EditorOperation newOp) {
  if (sourceOp instanceof TagOperation && newOp instanceof TagOperation) {
    return ((TagOperation)sourceOp).getObject().equals(
        ((TagOperation)newOp).getObject());
  } 
  return false;
}

代码示例来源:origin: pl.edu.icm.yadda/recorddb-editor

@Override
public CatalogObjectMeta update(DbObjectMeta current, CatalogObject<String> co) {
  CatalogObjectMeta updated = co;
  if (!current.getId().equals(co.getId()))
    updated = update(current, (CatalogObjectMeta) co);
  else
    updateTags(current, co);
  Set<String> present = new HashSet<String>(Arrays.asList(current.getPartTypes()));
  for (CatalogObjectPart<String> pt : co.getParts()) {
    if (present.contains(pt.getType()))
      updatePart(current.getPK(), pt);
    else {
      savePart(current.getPK(), pt);
      present.add(pt.getType());
    }
  }
  updated.setPartTypes(present.toArray(new String[present.size()]));
  return updated;
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-services2

@Override
  public boolean equals(Object arg0) {
    // TODO add support for checking authHeader
    if (this == arg0) {
      return true;
    }
    if (arg0 == null) {
      return false;
    }
    if (this.getClass() == arg0.getClass()) {
      GetObjectRequest goReq0 = (GetObjectRequest)arg0;
      if (this.isOnlyMetadata()!=goReq0.isOnlyMetadata()) {
        return false;
      }
      if (this.getObject()==null) {
        if (goReq0.getObject()!=null) {
          return false;
        } 
      } else {
        if (!this.getObject().equals(goReq0.getObject())) {
          return false;
        }
      }
      return true;
    } else {
      return false;
    }
  }
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-services2

if (!this.getObject().equals(gpReq0.getObject())) {
  return false;

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com