Lines Matching full:object1
199 * @param object1 The first object
201 * @return True if object1 and object2 are both null or if object1 is equal to object2, false
204 static protected boolean areEqual(Object object1, Object object2) {
205 return object1 == null ? object2 == null : object1.equals(object2);
211 * @param object1 The first object
213 * @return True if either object1 or object2 is null or if object1 is equal to object2, false if
216 static protected boolean areConsistent(Object object1, Object object2) {
217 return object1 == null || object2 == null ? true : object1.equals(object2);
223 * @param object1 The first object
228 static protected Object mergeObjects(Object object1, Object object2)
230 if (!areConsistent(object1, object2)) {
231 throw new ConflictingItemException(String.format("%s conflicts with %s", object1,
234 return object1 == null ? object2 : object1;