?? corbaitem.java
字號:
import java.util.*;
/**
* The item that record the user name, date, id and label.
*
* @author jack
*
*/
public class CorbaItem {
private String username;
private int id;
private Date start;
private Date end;
private String label;
/**
* The default constructor.
*
*/
public CorbaItem() {
}
/**
* The constructor that has all attributes initial.
*
* @param u
* username
* @param i
* id
* @param s
* start
* @param e
* end
* @param l
* label
*/
public CorbaItem(String u, int i, Date s, Date e, String l) {
username = u;
id = i;
start = s;
end = e;
label = l;
}
/**
* Return the username.
*
* @return username
*/
public String getUsername() {
return username;
}
/**
* Return the id.
*
* @return id
*/
public int getId() {
return id;
}
/**
* Return the start time.
*
* @return start time
*/
public Date getStart() {
return start;
}
/**
* Return the end time.
*
* @return end time
*/
public Date getEnd() {
return end;
}
/**
* Return the lable.
*
* @return label
*/
public String getLabel() {
return label;
}
/**
* Return the description of the item.
*
* @return a string to description of the item.
*/
public String toString() {
return "\nNo." + id + ": " + label + "\n\tStart: " + start.toString()
+ "\n\tEnd: " + end.toString();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -