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

tech.jhipster.lite.module.domain.file.JHipsterDestinations Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy