Rev 23780 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.enumuration;public enum ItemType {SERIALIZED(1), NON_SERIALIZED(2);private final int value;private ItemType(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 ItemType findByValue(int value) {switch (value) {case 1:return SERIALIZED;case 2:return NON_SERIALIZED;default:return null;}}}