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

tech.jhipster.lite.module.domain.packagejson.PackageJsonDependencies Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy