?? customauthtoken.java
字號(hào):
import com.jivesoftware.base.AuthToken;import java.io.Serializable;/** * Implementation of the AuthToken interface. */public final class CustomAuthToken implements AuthToken, Serializable { private long userID; /** * Constucts a new auth token with the specified userID. * * @param userID the userID to create an authToken token with. */ protected CustomAuthToken(long userID) { this.userID = userID; } // AuthToken Interface public long getUserID() { return userID; } public boolean isAnonymous() { return userID == -1; }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -