Subversion Repositories SmartDukaan

Rev

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

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