ru.yandex.qatools.allure.data.plugins.PluginStorage.groovy Maven / Gradle / Ivy
package ru.yandex.qatools.allure.data.plugins
import groovy.transform.CompileStatic
import groovy.transform.PackageScope
/**
* Internal storage for plugins.
*
* @author Dmitry Baev [email protected]
* Date: 25.04.15
*/
@PackageScope
@CompileStatic
class PluginStorage extends HashMap> {
PluginStorage(List plugins) {
for (T plugin : plugins) {
containsKey(plugin.type) ? get(plugin.type).add(plugin) : put(plugin.type, [plugin])
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy