-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aanpassen van de hoogste categorie.
- Loading branch information
Showing
5 changed files
with
75 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
package be.boks.domain; | ||
|
||
public enum Category { | ||
KIDS_RUN_1("kids_run_1"), | ||
KIDS_RUN_2("kids_run_2"), | ||
ROLSTOEL_RACE("rolstoelrace"), | ||
HANDBIKE_RACE("handbikerace"), | ||
FIVE_KM("5km"), | ||
TEN_KM("10km"); | ||
KIDS_RUN_1("kids_run_1", 2), | ||
KIDS_RUN_2("kids_run_2", 2), | ||
ROLSTOEL_RACE("rolstoelrace", 1), | ||
HANDBIKE_RACE("handbikerace", 3), | ||
FIVE_KM("5km", 5), | ||
TEN_KM("10km", 7); | ||
|
||
private String categoryName; | ||
|
||
private Category(String categoryName) { | ||
private Integer price; | ||
|
||
private Category(String categoryName, Integer price) { | ||
this.categoryName = categoryName; | ||
this.price = price; | ||
} | ||
|
||
public String getCategoryName() { | ||
return categoryName; | ||
} | ||
|
||
public Integer getPrice() { | ||
return price; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters