All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.module.domain.JHipsterModuleSlugs Maven / Gradle / Ivy

There is a newer version: 1.23.0
Show newest version
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