| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.dao.entity.fofo;
|
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
| 2 |
|
2 |
|
| 3 |
import java.util.AbstractMap;
|
- |
|
| 4 |
import java.util.Arrays;
|
- |
|
| 5 |
import java.util.HashMap;
|
- |
|
| 6 |
import java.util.List;
|
- |
|
| 7 |
import java.util.Map;
|
- |
|
| 8 |
import java.util.stream.Collectors;
|
- |
|
| 9 |
import java.util.stream.Stream;
|
- |
|
| 10 |
|
- |
|
| 11 |
import org.apache.commons.collections.ArrayStack;
|
- |
|
| 12 |
import org.apache.commons.collections4.list.UnmodifiableList;
|
3 |
import org.apache.commons.collections4.list.UnmodifiableList;
|
| 13 |
|
4 |
|
| - |
|
5 |
import java.util.*;
|
| 14 |
import com.mysql.fabric.xmlrpc.base.Array;
|
6 |
import java.util.stream.Collectors;
|
| - |
|
7 |
import java.util.stream.Stream;
|
| 15 |
|
8 |
|
| 16 |
public enum PartnerType {
|
9 |
public enum PartnerType {
|
| 17 |
ALL("All"), PLATINUM("Platinum"), DIAMOND("Diamond"), GOLD("Gold"), SILVER("Silver"), BRONZE("Bronze"),
|
10 |
ALL("All"), PLATINUM("Platinum"), DIAMOND("Diamond"), GOLD("Gold"), SILVER("Silver"), BRONZE("Bronze"),
|
| 18 |
NEW("Rising Star");
|
11 |
NEW("Rising Star");
|
| 19 |
|
12 |
|
| Line 32... |
Line 25... |
| 32 |
|
25 |
|
| 33 |
}
|
26 |
}
|
| 34 |
private String value;
|
27 |
private String value;
|
| 35 |
|
28 |
|
| 36 |
public static final Map<PartnerType, String> imageMap = Stream
|
29 |
public static final Map<PartnerType, String> imageMap = Stream
|
| 37 |
.of(new AbstractMap.SimpleEntry<>(PartnerType.GOLD, "resources/images/small_gold.png"),
|
30 |
.of(new AbstractMap.SimpleEntry<>(PartnerType.GOLD, "resources/images/small-gold.png"),
|
| 38 |
new AbstractMap.SimpleEntry<>(PartnerType.SILVER, "resources/images/small_silver.png"),
|
31 |
new AbstractMap.SimpleEntry<>(PartnerType.SILVER, "resources/images/small-silver.png"),
|
| 39 |
new AbstractMap.SimpleEntry<>(PartnerType.NEW, "resources/images/small_risingstar.png"),
|
32 |
new AbstractMap.SimpleEntry<>(PartnerType.NEW, "resources/images/small-risingstar.png"),
|
| 40 |
new AbstractMap.SimpleEntry<>(PartnerType.PLATINUM, "resources/images/small_platinum.png"),
|
33 |
new AbstractMap.SimpleEntry<>(PartnerType.PLATINUM, "resources/images/small-platinum.png"),
|
| 41 |
new AbstractMap.SimpleEntry<>(PartnerType.BRONZE, "resources/images/small_bronze.png"),
|
34 |
new AbstractMap.SimpleEntry<>(PartnerType.BRONZE, "resources/images/small-bronze.png"),
|
| 42 |
new AbstractMap.SimpleEntry<>(PartnerType.DIAMOND, "resources/images/small_diamond.png"))
|
35 |
new AbstractMap.SimpleEntry<>(PartnerType.DIAMOND, "resources/images/small-diamond.png"))
|
| 43 |
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
|
36 |
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
|
| 44 |
|
37 |
|
| 45 |
private PartnerType(String value) {
|
38 |
private PartnerType(String value) {
|
| 46 |
this.value = value;
|
39 |
this.value = value;
|
| 47 |
}
|
40 |
}
|