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

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

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

Util.cmpBoolval介绍

暂无

代码示例

代码示例来源: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

@Override
public boolean differsFrom(final BwAttendee val) {
 return (Util.compareStrings(val.getPartstat(), getPartstat()) != 0) ||
     (Util.compareStrings(val.getCn(), getCn()) != 0) ||
     (Util.compareStrings(val.getCuType(), getCuType()) != 0) ||
     (Util.compareStrings(val.getDelegatedFrom(), getDelegatedFrom()) != 0) ||
     (Util.compareStrings(val.getDelegatedTo(), getDelegatedTo()) != 0) ||
     (Util.compareStrings(val.getDir(), getDir()) != 0) ||
     (Util.compareStrings(val.getLanguage(), getLanguage()) != 0) ||
     (Util.compareStrings(val.getMember(), getMember()) != 0) ||
     (Util.cmpBoolval(val.getRsvp(), getRsvp()) != 0) ||
     (Util.compareStrings(val.getRole(), getRole()) != 0) ||
     (Util.compareStrings(val.getSentByVal(), getSentByVal()) != 0) ||
     (Util.compareStrings(val.getAttendeeUri(), getAttendeeUri()) != 0) ||
     (Util.cmpIntval(val.getScheduleAgent(), getScheduleAgent()) != 0);
}

相关文章