📄 user.java
字号:
/*
* Created on May 29, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.GTADS.usermanager;
import java.util.*;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class User {
private String username;
private UserProfile profile;
private Vector currentChatrooms = new Vector();
public User(String username) {
this.username = username;
// TODO: read in the profile from a hash
}
public String getUsername() {
return username;
}
public void setUsername(String username){
this.username = username;
}
public void setChatroom(String chatroom){
currentChatrooms.add(chatroom);
}
public Vector getChatroom(){
return currentChatrooms;
}
public void removeChatroom(String chatroom){
currentChatrooms.remove(chatroom);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -