Home | History | Annotate | Download | only in item

Lines Matching full:object2

200      * @param object2 The second 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);
212 * @param object2 The second 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);
224 * @param object2 The second object
228 static protected Object mergeObjects(Object object1, Object object2)
230 if (!areConsistent(object1, object2)) {
232 object2));
234 return object1 == null ? object2 : object1;