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 ([email protected])
- See Also:
-
Nested Class Summary
-
Field Summary
Fields -
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()getUid()booleanisEmpty()keySet()Change a property of the proxied object.voidvoidreadExternal(IDataInput input) Load custom object from stream.Remove a property from the proxied object.voidvoidintsize()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
-
Field Details
-
uid
-
type
-
item
The proxied object.
-
-
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> - Parameters:
name- name- Returns:
- boolean
-
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
- Returns:
- the uid
-
setUid
- Parameters:
uid- the uid to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-