/** * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.xiaomi.infra.galaxy.metrics.thrift; import java.util.Map; import java.util.HashMap; import libthrift091.TEnum; public enum OPERATOR implements libthrift091.TEnum { EQUAL(1), NOT_EQUAL(2), GREATER(3), GREATER_OR_EQUAL(4), LESS(5), LESS_OR_EQUAL(6); private final int value; private OPERATOR(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 OPERATOR findByValue(int value) { switch (value) { case 1: return EQUAL; case 2: return NOT_EQUAL; case 3: return GREATER; case 4: return GREATER_OR_EQUAL; case 5: return LESS; case 6: return LESS_OR_EQUAL; default: return null; } } }