/** * 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.emr.thrift; import java.util.Map; import java.util.HashMap; import libthrift091.TEnum; public enum TimeSpanUnit implements libthrift091.TEnum { MILLISECONDS(0), SECONDS(1), MINUTES(2), HOURS(3), DAYS(4), WEEKS(5), MONTHS(6), YEARS(7); private final int value; private TimeSpanUnit(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 TimeSpanUnit findByValue(int value) { switch (value) { case 0: return MILLISECONDS; case 1: return SECONDS; case 2: return MINUTES; case 3: return HOURS; case 4: return DAYS; case 5: return WEEKS; case 6: return MONTHS; case 7: return YEARS; default: return null; } } }