tech.jhipster.lite.module.domain.packagejson.PackageNames Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain.packagejson;
import java.util.Collection;
import java.util.stream.Stream;
import tech.jhipster.lite.shared.collection.domain.JHipsterCollections;
public record PackageNames(Collection packageNames) {
public PackageNames(Collection packageNames) {
this.packageNames = JHipsterCollections.immutable(packageNames);
}
public boolean isEmpty() {
return packageNames().isEmpty();
}
public Stream stream() {
return packageNames().stream();
}
}