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 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()
Getter for the fieldtype
.getUid()
Getter for the fielduid
.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
Setter for the fieldtype
.void
Setter for the fielduid
.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
-
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>
-
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
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
-