org.bedework.util.misc.Util.cmpObjval()方法的使用及代码示例

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

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

Util.cmpObjval介绍

暂无

代码示例

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
 public int compareTo(final Xpar o) {
  if (o == null) {
   return 1;
  }
  final int cmp = Util.cmpObjval(getName(), o.getName());
  if (cmp != 0) {
   return cmp;
  }
  return Util.cmpObjval(getValue(), o.getValue());
 }
}

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
public int compareTo(final BwResource that)  {
 if (this == that) {
  return 0;
 }
 int res = Util.cmpObjval(getColPath(), that.getColPath());
 if (res != 0) {
  return res;
 }
 return Util.cmpObjval(getName(), that.getName());
}

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-api

@Override
public int compareTo(final SynchReportItem that) {
 int res = token.compareTo(that.token);
 if (res != 0) {
  return res;
 }
 res = Util.cmpObjval(this.getResource(), that.getResource());
 if (res != 0) {
  return res;
 }
 res = Util.cmpObjval(this.getEvent(), that.getEvent());
 if (res != 0) {
  return res;
 }
 return Util.cmpObjval(this.getCol(), that.getCol());
}

代码示例来源:origin: org.bedework/bw-access

@Override
public int compareTo(final CurrentAccess that) {
 if (this == that) {
  return 0;
 }
 int res = Util.compare(aclChars, that.aclChars);
 if (res != 0) {
  return res;
 }
 res = Util.cmpObjval(privileges, that.privileges);
 if (res != 0) {
  return res;
 }
 return Util.cmpBoolval(accessAllowed, that.accessAllowed);
}

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-facade

/**
 *
 * @param cat the other one
 * @return true if anything changed
 */
public boolean updateFrom(final BwCategory cat) {
 boolean changed = false;
 if (!getWord().equals(cat.getWord())) {
  setWord(cat.getWord());
  changed = true;
 }
 if (Util.cmpObjval(getDescription(), cat.getDescription()) != 0) {
  setDescription(cat.getDescription());
  changed = true;
 }
 return changed;
}

相关文章