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

tech.jhipster.lite.project.domain.ModulesSlugs Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.project.domain;

import java.util.Collection;
import tech.jhipster.lite.shared.error.domain.Assert;

public record ModulesSlugs(Collection modules) {
  public ModulesSlugs {
    Assert.notEmpty("modules", modules);
  }

  public static ModulesSlugs from(Collection modules) {
    return new ModulesSlugs(modules.stream().map(ModuleSlug::new).toList());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy