Rev 9103 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.mobileapi.serving.utils;import java.util.HashMap;import java.util.Map;public enum SnippetType {PRODUCT_PROPERTIES_SNIPPET(0, "ProductPropertiesSnippet.html"),PRODUCT_DETAIL_SNIPPET(1,"ProductDetail.html"),SLIDE_GUIDE_SNIPPET(2, "SlideGuide.html"),HOME_SNIPPET(3,"HomeSnippet.html"),CATEGORY_SNIPPET(4,"CategorySnippet.html"),SEARCH_SNIPPET(5,"SearchSnippet.html"),WIDGET_SNIPPET(6,"WidgetSnippet.html"),MY_RESEARCH_SNIPPET(7,"MyResearchSnippet.html"),AFTER_SALES_SNIPPET(8,"AfterSales.html"),PHONES_I_OWN_SNIPPET(9,"PhonesIOwnSnippet.html"),COMPARE_PRODUCT_SNIPPET(10,"CompareProductSnippet.html"),COMPARISON_SNIPPET(11,"ComparisonSnippet.html"),COMPARE_PRODUCT_SUMMARY_SNIPPET(12,"CompareProductSummarySnippet.html"),SLIDE_NAMES_SNIPPET(13,"SlideNamesSnippet.html"),RELATED_ACCESSORIES_SNIPPET(14,"RelatedAccessories.html"),MOST_COMPARED_SNIPPET(15,"MostComparedProducts.html"),MOST_COMPARED_PRODUCT_SNIPPET(16,"MostComparedSnippet.html");@SuppressWarnings("serial")private static final Map<Integer, SnippetType> BY_VALUE = new HashMap<Integer,SnippetType>() {{for(SnippetType val : SnippetType.values()) {put(val.getValue(), val);}}};private final int value;private final String filename;private SnippetType(int value, String filename) {this.value = value;this.filename = filename;}/***Get the filename of this enum value.*/public String getFilename() {return filename;}public int getValue() {return value;}public static SnippetType findByValue(int value) {return BY_VALUE.get(value);}}