This commit is contained in:
parent
cc37d15a2e
commit
4cb633d9af
1 changed files with 3 additions and 31 deletions
|
@ -13,35 +13,7 @@ import java.util.List;
|
|||
* @author Tomek
|
||||
*/
|
||||
public class Pietro {
|
||||
private List<Pasazer> pasazerowie;
|
||||
private int IloscWysiadajacych;
|
||||
private int NumerPietra;
|
||||
|
||||
public Pietro(int numerPietra){
|
||||
this.NumerPietra = numerPietra;
|
||||
}
|
||||
|
||||
public int GetIloscWysiadajacych(){
|
||||
return this.IloscWysiadajacych;
|
||||
}
|
||||
|
||||
public void SetIloscWysiadajacych(int iloscWysiadajacych){
|
||||
this.IloscWysiadajacych = iloscWysiadajacych;
|
||||
}
|
||||
|
||||
public List<Pasazer> GetPasazerowie(){
|
||||
return this.pasazerowie;
|
||||
}
|
||||
|
||||
public void SetPasazerowie(List<Pasazer> pasazerowie) {
|
||||
this.pasazerowie = pasazerowie;
|
||||
}
|
||||
|
||||
public void AddPasazer(Pasazer pasazer) {
|
||||
this.pasazerowie.add(pasazer);
|
||||
}
|
||||
|
||||
public void DeletePasazer(Pasazer pasazer) {
|
||||
this.pasazerowie.remove(pasazer);
|
||||
}
|
||||
public List<Pasazer> pasazerowie;
|
||||
public int IloscWysiadajacych;
|
||||
public int NumerPietra;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue