Subversion Repositories SmartDukaan

Rev

Rev 32446 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32446 Rev 32460
Line 1... Line 1...
1
package com.spice.profitmandi.dao.enumuration.fofo;
1
package com.spice.profitmandi.dao.enumuration.fofo;
2
 
2
 
3
public enum Milestone {
3
public enum Milestone {
4
 
4
 
5
	ABOVE_TEN_LAC("> 10 Lac"), FOUR_TO_TEN_LAC("4Lac to 10Lac"), THREE_TO_FOUR_LAC("3Lac to 4Lac"),
5
	FOUR_TO_TEN_LAC("4Lac to 10Lac"), THREE_TO_FOUR_LAC("3Lac to 4Lac"),
6
	TWO_TO_THREE_LAC("2Lac to 3Lac"), LESS_THAN_TWO_LAC("< 2 Lac"), ZERO("0");
6
	TWO_TO_THREE_LAC("2Lac to 3Lac"), LESS_THAN_TWO_LAC("< 2 Lac"), ZERO("0");
7
 
7
 
8
	private String value;
8
	private String value;
9
 
9
 
10
	private Milestone(String value) {
10
	private Milestone(String value) {
Line 21... Line 21...
21
	}
21
	}
22
 
22
 
23
	public static Milestone get(int value) {
23
	public static Milestone get(int value) {
24
		Milestone milestone = Milestone.ZERO;
24
		Milestone milestone = Milestone.ZERO;
25
 
25
 
26
		if (value >= 1000000) {
26
		if (value >= 400000) {
27
			milestone = Milestone.ABOVE_TEN_LAC;
-
 
28
 
-
 
29
		} else if (value >= 400000 && value < 1000000) {
-
 
30
			milestone = Milestone.FOUR_TO_TEN_LAC;
27
			milestone = Milestone.FOUR_TO_TEN_LAC;
31
 
28
 
32
		} else if (value >= 300000 && value < 400000) {
29
		} else if (value >= 300000 && value < 400000) {
33
			milestone = Milestone.THREE_TO_FOUR_LAC;
30
			milestone = Milestone.THREE_TO_FOUR_LAC;
34
 
31