tech.jhipster.lite.module.domain.file.JHipsterDestinations Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain.file;
import java.util.Collection;
import tech.jhipster.lite.shared.collection.domain.JHipsterCollections;
import tech.jhipster.lite.shared.error.domain.Assert;
public record JHipsterDestinations(Collection destinations) {
public JHipsterDestinations(Collection destinations) {
this.destinations = JHipsterCollections.immutable(destinations);
}
public boolean doesNotContain(JHipsterDestination destination) {
Assert.notNull("destination", destination);
return !destinations().contains(destination);
}
}