tech.jhipster.lite.module.domain.JHipsterModuleSlugs Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain;
import java.util.Collection;
import tech.jhipster.lite.shared.error.domain.Assert;
public record JHipsterModuleSlugs(Collection modules) {
public JHipsterModuleSlugs {
Assert.notEmpty("modules", modules);
}
public static JHipsterModuleSlugs from(Collection modules) {
return new JHipsterModuleSlugs(modules.stream().map(JHipsterModuleSlug::new).toList());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy