/** * Merges the two specified restrictions. * * @param restriction the first restriction * @param otherRestriction the second restriction * @return the merged restriction * @throws InvalidRequestException if the two restrictions cannot be merged */ private static SingleRestriction mergeRestrictions(SingleRestriction restriction, SingleRestriction otherRestriction) { return restriction == null ? otherRestriction : restriction.mergeWith(otherRestriction); }
/** * Merges the two specified restrictions. * * @param restriction the first restriction * @param otherRestriction the second restriction * @return the merged restriction * @throws InvalidRequestException if the two restrictions cannot be merged */ private static SingleRestriction mergeRestrictions(SingleRestriction restriction, SingleRestriction otherRestriction) { return restriction == null ? otherRestriction : restriction.mergeWith(otherRestriction); }
/** * Merges the two specified restrictions. * * @param restriction the first restriction * @param otherRestriction the second restriction * @return the merged restriction * @throws InvalidRequestException if the two restrictions cannot be merged */ private static SingleRestriction mergeRestrictions(SingleRestriction restriction, SingleRestriction otherRestriction) { return restriction == null ? otherRestriction : restriction.mergeWith(otherRestriction); }