Package com.smartfoxserver.v2.buddylist
Class SFSBuddyProperties
- java.lang.Object
-
- com.smartfoxserver.v2.buddylist.SFSBuddyProperties
-
- All Implemented Interfaces:
BuddyProperties
public class SFSBuddyProperties extends java.lang.Object implements BuddyProperties
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
inited
protected boolean
updated
protected java.util.Map<java.lang.String,BuddyVariable>
variables
-
Constructor Summary
Constructors Constructor Description SFSBuddyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsVariable(java.lang.String varName)
java.lang.String
getNickName()
java.util.List<BuddyVariable>
getPersistentVariables()
java.lang.String
getState()
BuddyVariable
getVariable(java.lang.String varName)
java.util.List<BuddyVariable>
getVariables()
int
getVariablesCount()
void
init(java.lang.Object o)
boolean
isChangedSinceLastSave()
boolean
isInited()
boolean
isOnline()
void
removeVariable(java.lang.String varName)
void
setChangedSinceLastSave(boolean flag)
void
setInited()
void
setNickName(java.lang.String buddyNickName)
void
setOnline(boolean flag)
void
setState(java.lang.String state)
void
setVariable(BuddyVariable buddyVariable)
void
setVariables(java.util.List<BuddyVariable> buddyVariables)
java.lang.String
toString()
-
-
-
Field Detail
-
variables
protected java.util.Map<java.lang.String,BuddyVariable> variables
-
updated
protected volatile boolean updated
-
inited
protected volatile boolean inited
-
-
Method Detail
-
init
public void init(java.lang.Object o)
- Specified by:
init
in interfaceBuddyProperties
-
isInited
public boolean isInited()
- Specified by:
isInited
in interfaceBuddyProperties
-
setInited
public void setInited()
- Specified by:
setInited
in interfaceBuddyProperties
-
containsVariable
public boolean containsVariable(java.lang.String varName)
- Specified by:
containsVariable
in interfaceBuddyProperties
-
getNickName
public java.lang.String getNickName()
- Specified by:
getNickName
in interfaceBuddyProperties
-
getState
public java.lang.String getState()
- Specified by:
getState
in interfaceBuddyProperties
-
isOnline
public boolean isOnline()
- Specified by:
isOnline
in interfaceBuddyProperties
-
getVariable
public BuddyVariable getVariable(java.lang.String varName)
- Specified by:
getVariable
in interfaceBuddyProperties
-
getVariables
public java.util.List<BuddyVariable> getVariables()
- Specified by:
getVariables
in interfaceBuddyProperties
-
getPersistentVariables
public java.util.List<BuddyVariable> getPersistentVariables()
- Specified by:
getPersistentVariables
in interfaceBuddyProperties
-
getVariablesCount
public int getVariablesCount()
- Specified by:
getVariablesCount
in interfaceBuddyProperties
-
removeVariable
public void removeVariable(java.lang.String varName)
- Specified by:
removeVariable
in interfaceBuddyProperties
-
setNickName
public void setNickName(java.lang.String buddyNickName)
- Specified by:
setNickName
in interfaceBuddyProperties
-
setOnline
public void setOnline(boolean flag)
- Specified by:
setOnline
in interfaceBuddyProperties
-
setState
public void setState(java.lang.String state)
- Specified by:
setState
in interfaceBuddyProperties
-
setVariable
public void setVariable(BuddyVariable buddyVariable)
- Specified by:
setVariable
in interfaceBuddyProperties
-
setVariables
public void setVariables(java.util.List<BuddyVariable> buddyVariables)
- Specified by:
setVariables
in interfaceBuddyProperties
-
isChangedSinceLastSave
public boolean isChangedSinceLastSave()
- Specified by:
isChangedSinceLastSave
in interfaceBuddyProperties
-
setChangedSinceLastSave
public void setChangedSinceLastSave(boolean flag)
- Specified by:
setChangedSinceLastSave
in interfaceBuddyProperties
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-