tech.jhipster.lite.module.domain.JHipsterFeatureSlug Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain;
import java.util.Optional;
import org.apache.commons.lang3.StringUtils;
public final class JHipsterFeatureSlug extends JHipsterSlug {
public JHipsterFeatureSlug(String slug) {
super(slug);
}
public static Optional of(String feature) {
return Optional.ofNullable(feature).filter(StringUtils::isNotBlank).map(JHipsterFeatureSlug::new);
}
}