Subversion Repositories SmartDukaan

Rev

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

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