Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
553 chandransh 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.model.v1.user;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
public enum LineStatus implements TEnum{
13
    LINE_ACTIVE(0),
14
    LINE_DELETED(1),
15
    LINE_EXPIRED(2),
16
    LINE_COMMITED(3),
17
    LINE_COMMIT_FAILED(4),
18
    LINE_AUTO_DELETED(5);
19
 
20
  private static final Map<Integer, LineStatus> BY_VALUE = new HashMap<Integer,LineStatus>() {{
21
    for(LineStatus val : LineStatus.values()) {
22
      put(val.getValue(), val);
23
    }
24
  }};
25
 
26
  private final int value;
27
 
28
  private LineStatus(int value) {
29
    this.value = value;
30
  }
31
 
32
  /**
33
   * Get the integer value of this enum value, as defined in the Thrift IDL.
34
   */
35
  public int getValue() {
36
    return value;
37
  }
38
 
39
  /**
40
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
41
   * @return null if the value is not found.
42
   */
43
  public static LineStatus findByValue(int value) { 
44
    return BY_VALUE.get(value);
45
  }
46
}