-
Notifications
You must be signed in to change notification settings - Fork 510
Expand file tree
/
Copy pathDice.java
More file actions
40 lines (31 loc) · 789 Bytes
/
Dice.java
File metadata and controls
40 lines (31 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package models;
import lombok.Getter;
@Getter
public class Dice {
int lowerLimit;
int upperLimit;
public Dice() {
this.lowerLimit = 1;
this.upperLimit = 6;
}
public Dice(int upperLimit) {
this.lowerLimit = 1;
this.upperLimit = upperLimit;
}
Dice(int lowerLimit, int upperLimit) {
this.lowerLimit = lowerLimit;
this.upperLimit = upperLimit;
}
public int getLowerLimit() {
return lowerLimit;
}
public void setLowerLimit(int lowerLimit) {
this.lowerLimit = lowerLimit;
}
public int getUpperLimit() {
return upperLimit;
}
public void setUpperLimit(int upperLimit) {
this.upperLimit = upperLimit;
}
}