org.eclipse.persistence.internal.helper.Helper.comparePotentialArrays()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(157)

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

Helper.comparePotentialArrays介绍

[英]Compare two potential arrays and return true if they are the same. Will check for BigDecimals as well.
[中]比较两个可能的数组,如果它们相同,则返回true。也将检查大小数。

代码示例

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. return Helper.comparePotentialArrays(firstValue, secondValue);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. return Helper.comparePotentialArrays(firstValue, secondValue);

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  1. /**
  2. * INTERNAL:
  3. * Compare the attribute values.
  4. */
  5. protected boolean compareObjectValues(Object firstValue, Object secondValue, AbstractSession session) {
  6. // PERF: Check identity before conversion.
  7. if (firstValue == secondValue) {
  8. return true;
  9. }
  10. // CR2114 - following two lines modified; getFieldValue() needs class as an argument
  11. firstValue = getFieldValue(firstValue, session);
  12. secondValue = getFieldValue(secondValue, session);
  13. // PERF: Check identity/nulls before special type comparison.
  14. if (firstValue == secondValue) {
  15. return true;
  16. }
  17. if ((firstValue == null) || (secondValue == null)) {
  18. return false;
  19. }
  20. // PERF: Check equals first, as normally no change.
  21. boolean equal = firstValue.equals(secondValue);
  22. if (equal) {
  23. return true;
  24. }
  25. return Helper.comparePotentialArrays(firstValue, secondValue);
  26. }

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  1. found = false;
  2. } else {
  3. found = Helper.comparePotentialArrays(object, otherObject);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. found = false;
  2. } else {
  3. found = Helper.comparePotentialArrays(object, otherObject);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. found = false;
  2. } else {
  3. found = Helper.comparePotentialArrays(object, otherObject);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. if (!Helper.comparePotentialArrays(firstFieldValue, secondFieldValue)) {
  2. return false;

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. if (!Helper.comparePotentialArrays(firstFieldValue, secondFieldValue)) {
  2. return false;

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. continue; // skip this iteration, go to the next one
  2. if (Helper.comparePotentialArrays(cloneFieldValue, backUpFieldValue)) {
  3. continue; // skip this iteration, go to the next one

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. continue; // skip this iteration, go to the next one
  2. if (Helper.comparePotentialArrays(cloneFieldValue, backUpFieldValue)) {
  3. continue; // skip this iteration, go to the next one

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. && (((targetAttribute == null) && (attribute != null)) || ((targetAttribute != null) && ((attribute == null) || ((!targetAttribute.equals(attribute)) && (!Helper.comparePotentialArrays(targetAttribute, attribute))))))) {
  2. this.descriptor.getObjectChangePolicy().raiseInternalPropertyChangeEvent(target, getAttributeName(), targetAttribute, attribute);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. && (((targetAttribute == null) && (attribute != null)) || ((targetAttribute != null) && ((attribute == null) || ((!targetAttribute.equals(attribute)) && (!Helper.comparePotentialArrays(targetAttribute, attribute))))))) {
  2. this.descriptor.getObjectChangePolicy().raiseInternalPropertyChangeEvent(target, getAttributeName(), targetAttribute, attribute);

相关文章

Helper类方法