
tech.aroma.thrift.Urgency Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aroma-thrift Show documentation
Show all versions of aroma-thrift Show documentation
Part of the Aroma Project.
This project contains the Service and Model Definitions.
From this the Server and Client interfaces are generated for the Aroma Service.
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package tech.aroma.thrift;
import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;
/**
* Determines how Important or Severe a Message is.
*/
public enum Urgency implements org.apache.thrift.TEnum {
/**
* Lowest level of urgency.
*/
LOW(1),
/**
* Middle level of urgency.
*/
MEDIUM(2),
/**
* Highest level of urgency.
*/
HIGH(3);
private final int value;
private Urgency(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
public static Urgency findByValue(int value) {
switch (value) {
case 1:
return LOW;
case 2:
return MEDIUM;
case 3:
return HIGH;
default:
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy