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

tech.jhipster.lite.module.domain.JHipsterFeatureSlug Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy