📄 plage.java
字号:
package dao.model;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.List;
public class Plage {
@Override
public String toString() {
SimpleDateFormat sf=new SimpleDateFormat("hh:mm:ss a");
String strDebut=sf.format(getDebut());
return strDebut+" "+getCategorie();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getDuree() {
return duree;
}
public void setDuree(int duree) {
this.duree = duree;
}
public String getCategorie() {
return categorie;
}
public void setCategorie(String categorie) {
this.categorie = categorie;
}
public Timestamp getDebut() {
return debut;
}
public void setDebut(Timestamp debut) {
this.debut = debut;
}
private int id;
private int duree;
private String categorie;
private Timestamp debut;
private int temprest;
public int getTemprest() {
return temprest;
}
public void setTemprest(int temprest) {
this.temprest = temprest;
}
public List<Spot> getLesSpots() {
return lesSpots;
}
public void setLesSpots(List<Spot> lesSpots) {
this.lesSpots = lesSpots;
}
List<Spot> lesSpots;
// public void setSpot(Spot s){
// lesSpots.add(s);
// }
//
// public List<Spot> getSpots(){
// return lesSpots;
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -