Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3028 mandeep.dh 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.crm;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
public enum TicketStatus implements TEnum{
13
    OPEN(0),
14
    CLOSED(1),
15
    REOPEN(2);
16
 
17
  private static final Map<Integer, TicketStatus> BY_VALUE = new HashMap<Integer,TicketStatus>() {{
18
    for(TicketStatus val : TicketStatus.values()) {
19
      put(val.getValue(), val);
20
    }
21
  }};
22
 
23
  private final int value;
24
 
25
  private TicketStatus(int value) {
26
    this.value = value;
27
  }
28
 
29
  /**
30
   * Get the integer value of this enum value, as defined in the Thrift IDL.
31
   */
32
  public int getValue() {
33
    return value;
34
  }
35
 
36
  /**
37
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
38
   * @return null if the value is not found.
39
   */
40
  public static TicketStatus findByValue(int value) { 
41
    return BY_VALUE.get(value);
42
  }
43
}