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

tech.jhipster.lite.module.domain.packagejson.PackageNames 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 PackageNames(Collection packageNames) {
  public PackageNames(Collection packageNames) {
    this.packageNames = JHipsterCollections.immutable(packageNames);
  }

  public boolean isEmpty() {
    return packageNames().isEmpty();
  }

  public Stream stream() {
    return packageNames().stream();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy