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

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

本文整理了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

  1. @Override
  2. public int compareTo(final Xpar o) {
  3. if (o == null) {
  4. return 1;
  5. }
  6. final int cmp = Util.cmpObjval(getName(), o.getName());
  7. if (cmp != 0) {
  8. return cmp;
  9. }
  10. return Util.cmpObjval(getValue(), o.getValue());
  11. }
  12. }

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

  1. @Override
  2. public int compareTo(final BwResource that) {
  3. if (this == that) {
  4. return 0;
  5. }
  6. int res = Util.cmpObjval(getColPath(), that.getColPath());
  7. if (res != 0) {
  8. return res;
  9. }
  10. return Util.cmpObjval(getName(), that.getName());
  11. }

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

  1. @Override
  2. public int compareTo(final SynchReportItem that) {
  3. int res = token.compareTo(that.token);
  4. if (res != 0) {
  5. return res;
  6. }
  7. res = Util.cmpObjval(this.getResource(), that.getResource());
  8. if (res != 0) {
  9. return res;
  10. }
  11. res = Util.cmpObjval(this.getEvent(), that.getEvent());
  12. if (res != 0) {
  13. return res;
  14. }
  15. return Util.cmpObjval(this.getCol(), that.getCol());
  16. }

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

  1. @Override
  2. public int compareTo(final CurrentAccess that) {
  3. if (this == that) {
  4. return 0;
  5. }
  6. int res = Util.compare(aclChars, that.aclChars);
  7. if (res != 0) {
  8. return res;
  9. }
  10. res = Util.cmpObjval(privileges, that.privileges);
  11. if (res != 0) {
  12. return res;
  13. }
  14. return Util.cmpBoolval(accessAllowed, that.accessAllowed);
  15. }

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

  1. /**
  2. *
  3. * @param cat the other one
  4. * @return true if anything changed
  5. */
  6. public boolean updateFrom(final BwCategory cat) {
  7. boolean changed = false;
  8. if (!getWord().equals(cat.getWord())) {
  9. setWord(cat.getWord());
  10. changed = true;
  11. }
  12. if (Util.cmpObjval(getDescription(), cat.getDescription()) != 0) {
  13. setDescription(cat.getDescription());
  14. changed = true;
  15. }
  16. return changed;
  17. }

相关文章