/** * Diff the current instanceInfo with another "older" InstanceInfo, returning the results as a set of Deltas * iff the two instanceInfo have matching ids. * * @param another the "older" instanceInfo * @return the set of deltas, or null if the diff is invalid (InstanceInfos are null or id mismatch) */ public Set<Delta<?>> diffOlder(InstanceInfo another) { return diff(another, this); }
/** * Diff the current instanceInfo with another "newer" InstanceInfo, returning the results as a set of Deltas * iff the two instanceInfo have matching ids. * The version of the delta will be the version of the other ("newer") instanceInfo * * @param another the "newer" instanceInfo * @return the set of deltas, or null if the diff is invalid (InstanceInfos are null or id mismatch) */ public Set<Delta<?>> diffNewer(InstanceInfo another) { return diff(this, another); }