👔 Finish early model

main
Alexis Drai 2 years ago
parent 1efb4f91ca
commit 31f674cfcb

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -0,0 +1,14 @@
package model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Promotion implements Serializable {
private final List<Student> students = new ArrayList<>();
public List<Student> getStudents() {
return Collections.unmodifiableList(students);
}
}

@ -1,4 +1,27 @@
package model;
public class Student {
import java.io.Serializable;
public class Student implements Serializable {
private final String lastname;
private String firstName;
public Student(String lastname, String firstName) {
this.lastname = lastname;
this.firstName = firstName;
}
public String getLastname() {
return lastname;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
}

Loading…
Cancel
Save