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
Flex
ObjectProxy compatibility class.- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreate new empty proxy.ObjectProxy(Map<T, V> item) Create proxy for given object. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object name) Check if proxied object has a given property.booleancontainsValue(Object value) entrySet()Return the value of a property.getType()Getter for the fieldtype.getUid()Getter for the fielduid.booleanisEmpty()keySet()Change a property of the proxied object.voidvoidreadExternal(IDataInput input) Load custom object from stream.Remove a property from the proxied object.voidSetter for the fieldtype.voidSetter for the fielduid.intsize()toString()Return string representation of the proxied object.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, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ObjectProxy
public ObjectProxy()Create new empty proxy. -
ObjectProxy
Create proxy for given object.- Parameters:
item- object to proxy
-
-
Method Details
-
readExternal
Load custom object from stream.- Specified by:
readExternalin interfaceIExternalizable- Parameters:
input- object to be used for data loading
-
writeExternal
Store custom object to stream.- Specified by:
writeExternalin interfaceIExternalizable- Parameters:
output- object to be used for data storing
-
toString
Return string representation of the proxied object. -
clear
public void clear() -
containsKey
Check if proxied object has a given property.- Specified by:
containsKeyin interfaceMap<T,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<T,V>
-
entrySet
-
get
Return the value of a property. -
isEmpty
public boolean isEmpty() -
keySet
-
put
Change a property of the proxied object. -
putAll
-
remove
Remove a property from the proxied object. -
size
public int size() -
values
-
getUid
Getter for the field
uid.- Returns:
- the uid
-
setUid
Setter for the field
uid.- Parameters:
uid- the uid to set
-
getType
Getter for the field
type.- Returns:
- the type
-
setType
Setter for the field
type.- Parameters:
type- the type to set
-