
tech.aroma.thrift.Role 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;
/**
* Defines the Role(s) that a human in this system
* can be.
*/
public enum Role implements org.apache.thrift.TEnum {
DEVELOPER(1),
OPERATIONS(2),
MANAGER(3),
PRODUCT(4),
QA(5),
FAN(6);
private final int value;
private Role(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 Role findByValue(int value) {
switch (value) {
case 1:
return DEVELOPER;
case 2:
return OPERATIONS;
case 3:
return MANAGER;
case 4:
return PRODUCT;
case 5:
return QA;
case 6:
return FAN;
default:
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy