public class UserDataHolderBase extends java.lang.Object implements UserDataHolderEx
Constructor and Description |
---|
UserDataHolderBase() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
changeUserMap(KeyFMap oldMap,
KeyFMap newMap) |
protected void |
clearUserData() |
protected java.lang.Object |
clone() |
void |
copyCopyableDataTo(UserDataHolderBase clone) |
void |
copyUserDataTo(UserDataHolderBase other) |
<T> T |
getCopyableUserData(Key<T> key) |
<T> T |
getUserData(Key<T> key) |
java.lang.String |
getUserDataString() |
protected KeyFMap |
getUserMap() |
boolean |
isUserDataEmpty() |
<T> void |
putCopyableUserData(Key<T> key,
T value) |
<T> void |
putUserData(Key<T> key,
T value)
Add a new user data value to this object.
|
<T> T |
putUserDataIfAbsent(Key<T> key,
T value) |
<T> boolean |
replace(Key<T> key,
T oldValue,
T newValue)
Replaces (atomically) old value in the map with the new one
|
protected void |
setUserMap(KeyFMap map) |
protected java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getUserDataString()
public void copyUserDataTo(UserDataHolderBase other)
public <T> T getUserData(Key<T> key)
getUserData
in interface UserDataHolder
protected KeyFMap getUserMap()
public <T> void putUserData(Key<T> key, T value)
UserDataHolder
putUserData
in interface UserDataHolder
public <T> T getCopyableUserData(Key<T> key)
public <T> void putCopyableUserData(Key<T> key, T value)
public <T> boolean replace(Key<T> key, T oldValue, T newValue)
UserDataHolderEx
replace
in interface UserDataHolderEx
ConcurrentMap.replace(Object, Object, Object)
public <T> T putUserDataIfAbsent(Key<T> key, T value)
putUserDataIfAbsent
in interface UserDataHolderEx
public void copyCopyableDataTo(UserDataHolderBase clone)
protected void clearUserData()
protected void setUserMap(KeyFMap map)
public boolean isUserDataEmpty()