Class ObjectProxy<T,V>
- java.lang.Object
-
- org.red5.compatibility.flex.messaging.io.ObjectProxy<T,V>
-
- Type Parameters:
T- typeV- value
- All Implemented Interfaces:
Map<T,V>,IExternalizable
public class ObjectProxy<T,V> extends Object implements Map<T,V>, IExternalizable
FlexObjectProxycompatibility class.- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
- See Also:
- ObjectProxy
-
-
Constructor Summary
Constructors Constructor Description ObjectProxy()Create new empty proxy.ObjectProxy(Map<T,V> item)Create proxy for given object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object name)Check if proxied object has a given property.booleancontainsValue(Object value)Set<Map.Entry<T,V>>entrySet()Vget(Object name)Return the value of a property.ObjectgetType()StringgetUid()booleanisEmpty()Set<T>keySet()Vput(T name, V value)Change a property of the proxied object.voidputAll(Map values)voidreadExternal(IDataInput input)Load custom object from stream.Vremove(Object name)Remove a property from the proxied object.voidsetType(Object type)voidsetUid(String uid)intsize()StringtoString()Return string representation of the proxied object.Collection<V>values()voidwriteExternal(IDataOutput output)Store custom object to stream.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
readExternal
public void readExternal(IDataInput input)
Load custom object from stream.- Specified by:
readExternalin interfaceIExternalizable- Parameters:
input- object to be used for data loading
-
writeExternal
public void writeExternal(IDataOutput output)
Store custom object to stream.- Specified by:
writeExternalin interfaceIExternalizable- Parameters:
output- object to be used for data storing
-
toString
public String toString()
Return string representation of the proxied object.
-
containsKey
public boolean containsKey(Object name)
Check if proxied object has a given property.- Specified by:
containsKeyin interfaceMap<T,V>- Parameters:
name- name- Returns:
- boolean
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<T,V>
-
getUid
public String getUid()
- Returns:
- the uid
-
setUid
public void setUid(String uid)
- Parameters:
uid- the uid to set
-
getType
public Object getType()
- Returns:
- the type
-
setType
public void setType(Object type)
- Parameters:
type- the type to set
-
-