
io.intercom.api.JobSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of intercom-java Show documentation
Show all versions of intercom-java Show documentation
Java bindings for the Intercom API
The newest version!
package io.intercom.api;
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import java.util.List;
class JobSupport {
public void validateJobItem(JobItem item, List methods) {
if (!methods.contains(item.getMethod())) {
final String message = String.format(
"job method [%s] not allowed, must be one of "
+ Joiner.on(", ").join(methods), item.getMethod()
);
throw new InvalidException(
new ErrorCollection(
Lists.newArrayList(
new Error("invalid", message))));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy