/** * Throws a RuntimeException if the provided RetryStrategy is invalid. * * @throws ValidationException */ public final void ensureValid(@NonNull RetryStrategy retryStrategy) { ensureNoErrors(validate(retryStrategy)); }
/** * Throws a RuntimeException if the provided JobParameters is invalid. * * @throws ValidationException */ public final void ensureValid(@NonNull JobParameters job) { ensureNoErrors(validate(job)); }
/** * Throws a RuntimeException if the provided JobTrigger is invalid. * * @throws ValidationException */ public final void ensureValid(@NonNull JobTrigger trigger) { ensureNoErrors(validate(trigger)); }