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

com.maxleap.code.RequestCategory Maven / Gradle / Ivy

There is a newer version: 2.4.9
Show newest version
package com.maxleap.code;

/**
 * Created by stream.
 */
public enum RequestCategory {

  FUNCTION("function"), JOB("job"), EntityManager("entityManager"), HEALTH("health");

  private String alias;

  RequestCategory(String alias) {
    this.alias = alias;
  }

  public String alias() {
    return alias;
  }

  public static RequestCategory aliasOf(String alias) {
    for (RequestCategory requestCategory : values()) {
      if (requestCategory.alias().equals(alias)) return requestCategory;
    }
    return null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy