Skip to content

Commit 82c6ac6

Browse files
committed
fix: run ./gradleW spotlessApply
1 parent 1b785e7 commit 82c6ac6

File tree

1 file changed

+20
-25
lines changed
  • lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/evanphilakhong

1 file changed

+20
-25
lines changed

lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/evanphilakhong/Formula1Car.java

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ public class Formula1Car {
1515
private TyreCompound currTyre;
1616
private boolean drs;
1717

18-
/**
19-
* Default Constructor for a Formula1Car with no team, empty
20-
* sponsors array, empty driver name, driver number 0, no tyre
21-
* compound, and DRS is disabled by default
18+
/**
19+
* Default Constructor for a Formula1Car with no team, empty sponsors array, empty driver name,
20+
* driver number 0, no tyre compound, and DRS is disabled by default
2221
*/
2322
public Formula1Car() {
2423
this.team = null;
@@ -28,14 +27,14 @@ public Formula1Car() {
2827
this.currTyre = null;
2928
this.drs = false;
3029
}
30+
3131
/**
32-
* @param team the tean that this Formula1Car belongs
33-
* @param sponsors array of sponsor names accosicated with this Formula1Car
32+
* @param team the tean that this Formula1Car belongs
33+
* @param sponsors array of sponsor names accosicated with this Formula1Car
3434
* @param driverName the name of the driver of this Formula1Car
35-
* @param driverNum the drivers number for the Formula1Car
36-
* @param position drivers current racing position on the grid
37-
* @param currTyre current TyreCompound fitted on this Formula1Car
38-
*
35+
* @param driverNum the drivers number for the Formula1Car
36+
* @param position drivers current racing position on the grid
37+
* @param currTyre current TyreCompound fitted on this Formula1Car
3938
* @see Team
4039
* @see TyreCompound
4140
*/
@@ -56,11 +55,9 @@ public Formula1Car(
5655
}
5756

5857
/**
59-
* Displays a header line then,
60-
* Prints a list of sponsors to the console.
58+
* Displays a header line then, Prints a list of sponsors to the console.
6159
*
6260
* @throws NoSponsorsException if there are no sponsors associated with this Formula1Car
63-
*
6461
* @see NoSponsorsException
6562
*/
6663
public void printSponsors() throws NoSponsorsException {
@@ -73,14 +70,13 @@ public void printSponsors() throws NoSponsorsException {
7370
}
7471
}
7572
}
73+
7674
/**
77-
* Checks if DRS (Drag Reduction System) is availible to use
78-
* This method determines DRS availibility based on weather or not
79-
* your Formula1Car is in the current track's designated DRS zone.
80-
*
81-
* @return {@code true} if DRS is availible (track has a DRS zone),
82-
* {@code false} otherwise
75+
* Checks if DRS (Drag Reduction System) is availible to use This method determines DRS
76+
* availibility based on weather or not your Formula1Car is in the current track's designated DRS
77+
* zone.
8378
*
79+
* @return {@code true} if DRS is availible (track has a DRS zone), {@code false} otherwise
8480
* @see Track#isDrsZone()
8581
*/
8682
public boolean isDrsAvailible() {
@@ -90,14 +86,13 @@ public boolean isDrsAvailible() {
9086
}
9187
return false;
9288
}
89+
9390
/**
94-
* Checks if we need to switch race strategy to account for the rainy weather
95-
* if the weather is LIGHT_RAIN we change the TyreCompound to INTERMEDIATE
96-
* if the weather is HEAVY_RAIN we change the TyreCompound to WET
97-
*
98-
* @return {@code true} if track.getWeather is LIGHT_RAIN || HEAVY_RAIN
99-
* {@code false} otherwise
91+
* Checks if we need to switch race strategy to account for the rainy weather if the weather is
92+
* LIGHT_RAIN we change the TyreCompound to INTERMEDIATE if the weather is HEAVY_RAIN we change
93+
* the TyreCompound to WET
10094
*
95+
* @return {@code true} if track.getWeather is LIGHT_RAIN || HEAVY_RAIN {@code false} otherwise
10196
* @see Track#getWeather()
10297
*/
10398
public boolean rainStrategy() {

0 commit comments

Comments
 (0)