Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
36619 amit 1
/**
2
 * Migrated from ThriftConfig - Thrift dependency removed
3
 *
4
 */
5
package in.shop2020.warehouse;
6
 
7
 
8
import java.util.Map;
9
import java.util.HashMap;
10
 
11
public enum TransferLotStatus {
12
  IN_TRANSIT(1),
13
  PARTIAL_TRANSFER(2),
14
  TRANSFER_COMPLETE(3);
15
 
16
  private final int value;
17
 
18
  private TransferLotStatus(int value) {
19
    this.value = value;
20
  }
21
 
22
  /**
23
   * Get the integer value of this enum value, as defined in the Thrift IDL.
24
   */
25
  public int getValue() {
26
    return value;
27
  }
28
 
29
  /**
30
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
31
   * @return null if the value is not found.
32
   */
33
  public static TransferLotStatus findByValue(int value) { 
34
    switch (value) {
35
      case 1:
36
        return IN_TRANSIT;
37
      case 2:
38
        return PARTIAL_TRANSFER;
39
      case 3:
40
        return TRANSFER_COMPLETE;
41
      default:
42
        return null;
43
    }
44
  }
45
}