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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate new empty proxy.ObjectProxy
(Map<T, V> item) Create proxy for given object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object name) Check if proxied object has a given property.boolean
containsValue
(Object value) entrySet()
Return the value of a property.getType()
getUid()
boolean
isEmpty()
keySet()
Change a property of the proxied object.void
void
readExternal
(IDataInput input) Load custom object from stream.Remove a property from the proxied object.void
void
int
size()
toString()
Return string representation of the proxied object.values()
void
writeExternal
(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
-
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:
readExternal
in interfaceIExternalizable
- Parameters:
input
- object to be used for data loading
-
writeExternal
Store custom object to stream.- Specified by:
writeExternal
in 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:
containsKey
in interfaceMap<T,
V> - Parameters:
name
- name- Returns:
- boolean
-
containsValue
- Specified by:
containsValue
in 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
-