Rev 3850 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.catalog.dashboard.shared;public enum ItemStatus{PHASED_OUT(0),DELETED(1),PAUSED(2),ACTIVE(3),IN_PROCESS(4),CONTENT_COMPLETE(5),PAUSED_BY_RISK(6);private final int value;private static final long serialVersionUID = -2982668732181655697L;private ItemStatus(int value) {this.value = value;}/*** Get the integer value of this enum value, as defined in the Thrift IDL.*/public int getValue() {return value;}/*** Find a the enum type by its integer value, as defined in the Thrift IDL.* @return null if the value is not found.*/public static ItemStatus findByValue(int value) {switch (value) {case 0:return PHASED_OUT;case 1:return DELETED;case 2:return PAUSED;case 3:return ACTIVE;case 4:return IN_PROCESS;case 5:return CONTENT_COMPLETE;case 6:return PAUSED_BY_RISK;default:return null;}}}