Skip to content

Commit

Permalink
[feat/#56] : final 키워드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunw9 committed Jun 2, 2024
1 parent 8348ea0 commit d4cdcf7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ public class FemaleCalculator implements CalorieCalculator {
private static final double COEFFICIENT_1 = 6.91;
private static final double COEFFICIENT_2 = 9.36;
private static final double COEFFICIENT_3 = 726;
private static double[] pa = {0, 1.0, 1.12, 1.27};
private static int[] dietKcal = {0, -1000, -500, 0, 500, 1000};

private int weight;
private int age;
private double height;
private int level;
private int dietPlan;
private static final double[] pa = {0, 1.0, 1.12, 1.27};
private static final int[] dietKcal = {0, -1000, -500, 0, 500, 1000};

private final int weight;
private final int age;
private final double height;
private final int level;
private final int dietPlan;

@Builder
public FemaleCalculator(int weight, int birth, int height, int level, int dietPlan) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ public class MaleCalculator implements CalorieCalculator {
private static final double COEFFICIENT_1 = 9.53;
private static final double COEFFICIENT_2 = 15.91;
private static final double COEFFICIENT_3 = 539.6;
private static double[] pa = {0, 1.0, 1.13, 1.26};
private static int[] dietKcal = {0, -1000, -500, 0, 500, 1000};

private int weight;
private int age;
private double height;
private int level;
private int dietPlan;
private static final double[] pa = {0, 1.0, 1.13, 1.26};
private static final int[] dietKcal = {0, -1000, -500, 0, 500, 1000};

private final int weight;
private final int age;
private final double height;
private final int level;
private final int dietPlan;

@Builder
public MaleCalculator(int weight, int birth, int height, int level, int dietPlan) {
Expand Down

0 comments on commit d4cdcf7

Please sign in to comment.