Subversion Repositories SmartDukaan

Rev

Rev 5945 | Rev 12783 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5945 Rev 7808
Line 9... Line 9...
9
import java.util.Map;
9
import java.util.Map;
10
import java.util.HashMap;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
11
import org.apache.thrift.TEnum;
12
 
12
 
13
public enum WarehouseLocation implements org.apache.thrift.TEnum {
13
public enum WarehouseLocation implements org.apache.thrift.TEnum {
14
  Mumbai(0),
14
  Delhi(0),
15
  Delhi(1),
15
  Mumbai(1),
16
  Bangalore(2),
16
  Bangalore(2),
17
  Kolkata(3);
17
  Kolkata(3);
18
 
18
 
19
  private final int value;
19
  private final int value;
20
 
20
 
Line 34... Line 34...
34
   * @return null if the value is not found.
34
   * @return null if the value is not found.
35
   */
35
   */
36
  public static WarehouseLocation findByValue(int value) { 
36
  public static WarehouseLocation findByValue(int value) { 
37
    switch (value) {
37
    switch (value) {
38
      case 0:
38
      case 0:
39
        return Mumbai;
-
 
40
      case 1:
-
 
41
        return Delhi;
39
        return Delhi;
-
 
40
      case 1:
-
 
41
        return Mumbai;
42
      case 2:
42
      case 2:
43
        return Bangalore;
43
        return Bangalore;
44
      case 3:
44
      case 3:
45
        return Kolkata;
45
        return Kolkata;
46
      default:
46
      default: