-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
300 additions
and
288 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 |
---|---|---|
|
@@ -2,3 +2,5 @@ bin | |
.classpath | ||
.project | ||
.settings | ||
.idea | ||
out |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="module-library" scope="TEST"> | ||
<library> | ||
<CLASSES> | ||
<root url="jar://$APPLICATION_HOME_DIR$/lib/junit-4.8.jar!/" /> | ||
</CLASSES> | ||
<JAVADOC /> | ||
<SOURCES /> | ||
</library> | ||
</orderEntry> | ||
</component> | ||
</module> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,22 @@ | ||
package com.aquiles.alexandre; | ||
|
||
public class Movie { | ||
public enum PriceCode {REGULAR, NEW_RELEASE, CHILDRENS} | ||
|
||
public static final int REGULAR = 0; | ||
public static final int NEW_RELEASE = 1; | ||
public static final int CHILDRENS = 2; | ||
private final String title; | ||
private final PriceCode priceCode; | ||
|
||
private String title; | ||
private Integer priceCode; | ||
|
||
public Movie(String title, Integer priceCode) { | ||
super(); | ||
this.title = title; | ||
this.priceCode = priceCode; | ||
} | ||
public Movie(String title, PriceCode priceCode) { | ||
this.title = title; | ||
this.priceCode = priceCode; | ||
} | ||
|
||
public Integer getPriceCode() { | ||
return priceCode; | ||
} | ||
public PriceCode getPriceCode() { | ||
return priceCode; | ||
} | ||
|
||
public void setPriceCode(Integer priceCode) { | ||
this.priceCode = priceCode; | ||
} | ||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
|
||
|
||
} |
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,24 +1,22 @@ | ||
package com.aquiles.alexandre; | ||
|
||
|
||
public class Rental { | ||
|
||
private Movie movie; | ||
private Integer daysRented; | ||
|
||
public Rental(Movie movie, Integer daysRented) { | ||
super(); | ||
this.movie = movie; | ||
this.daysRented = daysRented; | ||
} | ||
private Movie movie; | ||
private Integer daysRented; | ||
|
||
public Rental(Movie movie, Integer daysRented) { | ||
super(); | ||
this.movie = movie; | ||
this.daysRented = daysRented; | ||
} | ||
|
||
public Movie getMovie() { | ||
return movie; | ||
} | ||
|
||
public Movie getMovie() { | ||
return movie; | ||
} | ||
public Integer getDaysRented() { | ||
return daysRented; | ||
} | ||
|
||
public Integer getDaysRented() { | ||
return daysRented; | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.