package com.taskadapter.redmineapi.internal.comm; import com.taskadapter.redmineapi.RedmineException; /** * Redmine content handler. * * @author maxkar * */ public interface ContentHandler<K, R> { /** * Consumes content of a specified type and returns a specified result. * * @param content * content to process. * @return processed content. * @throws RedmineException * if something goes wrong. */ R processContent(K content) throws RedmineException; }