File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
exercises/tiered_pricing/solutions/oflorez/src/main/java/tv/codely/checkout Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11package tv .codely .checkout ;
22
33
4- public enum Tier {
4+ enum Tier {
55
66 FIRST (1 ,2 ,299 ),
77 SECOND (3 ,10 ,239 ),
@@ -19,19 +19,19 @@ public enum Tier {
1919 this .unitPrice = unitPrice ;
2020 }
2121
22- public int getLowerLimit () {
22+ int getLowerLimit () {
2323 return lowerLimit ;
2424 }
2525
26- public int getUpperLimit () {
26+ int getUpperLimit () {
2727 return upperLimit ;
2828 }
2929
30- public int getUnitPrice () {
30+ int getUnitPrice () {
3131 return unitPrice ;
3232 }
3333
34- public static int getTotalPrice (int subscriptions ) {
34+ static int getTotalPrice (int subscriptions ) {
3535 var found = FIRST ;
3636 for (Tier tier : values ()) {
3737 if ( subscriptions >= tier .lowerLimit && subscriptions <= tier .upperLimit ) {
You can’t perform that action at this time.
0 commit comments