Commit d13ede82 authored by Kevin Roy's avatar Kevin Roy

Ajout javadoc AllTravel #18

Ajout de javadoc pour AllTravel.
parent a3d062d6
......@@ -6,6 +6,9 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Represent all the Travel
*/
public class AllTravels {
private Set<Travel> setOfTravel = new HashSet<>();
public AllTravels() {
......@@ -54,6 +57,10 @@ public class AllTravels {
}
}
/**
* get all the Travel
* @return a list of all Travel
*/
public List<Travel> getAllTravel() {
List<Travel> toreturn = new ArrayList<>();
for (Travel t : setOfTravel) {
......@@ -62,6 +69,11 @@ public class AllTravels {
return toreturn;
}
/**
* remove a travel in the list
* @param toRemove - travel removed
* @return return true if the travel is removed, else false
*/
public boolean removeTravel(Travel toRemove) {
return setOfTravel.remove(toRemove);
}
......
......@@ -51,7 +51,7 @@ public class LoginFormController extends SceneController {
}
@Override
public void handleSubmission(String username, String password) {
if (username.equals("")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment