/** * Convenience method. * Check for null values before delegating to the mapping. */ private boolean compareElements(Object element1, Object element2, AbstractSession session) { if ((element1 == null) && (element2 == null)) { return true; } if ((element1 == null) || (element2 == null)) { return false; } if (element2 == XXX) {// if element2 was marked as cleared out, it is not a match return false; } return this.getMapping().compareElements(element1, element2, session); }
/** * Convenience method. * Check for null values before delegating to the mapping. */ private boolean compareElements(Object element1, Object element2, AbstractSession session) { if ((element1 == null) && (element2 == null)) { return true; } if ((element1 == null) || (element2 == null)) { return false; } if (element2 == XXX) {// if element2 was marked as cleared out, it is not a match return false; } return this.getMapping().compareElements(element1, element2, session); }
/** * Convenience method. * Check for null values before delegating to the mapping. */ private boolean compareElements(Object element1, Object element2, AbstractSession session) { if ((element1 == null) && (element2 == null)) { return true; } if ((element1 == null) || (element2 == null)) { return false; } if (element2 == XXX) {// if element2 was marked as cleared out, it is not a match return false; } return this.getMapping().compareElements(element1, element2, session); }