📄 posting.java
字号:
package domain;
import java.util.*;
public class Posting
{
protected int id;
protected String content;
protected String author;
protected Date time;
public Posting()
{
}
public Posting(int id,String content,String author, Date time)
{
this.id=id;
this.content=content;
this.author=author;
this.time=time;
}
public void setId(int id)
{
this.id = id;
}
public void setContent(String content)
{
this.content = content;
}
public void setAuthor(String author)
{
this.author = author;
}
public void setTime(Date time)
{
this.time = time;
}
public int getId()
{
return (this.id);
}
public String getContent()
{
return (this.content);
}
public String getAuthor()
{
return (this.author);
}
public Date getTime()
{
return (this.time);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -