tech.jhipster.lite.module.domain.packagejson.PackageJsonDependencies 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 PackageJsonDependencies(Collection dependencies) {
public PackageJsonDependencies(Collection dependencies) {
this.dependencies = JHipsterCollections.immutable(dependencies);
}
public boolean isEmpty() {
return dependencies().isEmpty();
}
public Stream stream() {
return dependencies().stream();
}
}