Class ArrayCollection<T>
java.lang.Object
org.red5.compatibility.flex.messaging.io.ArrayCollection<T>
- Type Parameters:
T
- type of collection elements
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,IExternalizable
Flex
ArrayCollection
compatibility class.- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de), Paul Gregoire (mondain@gmail.com)
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> c) boolean
addAll
(Collection<? extends T> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) int
boolean
isEmpty()
iterator()
int
listIterator
(int index) void
readExternal
(IDataInput input) Load custom object from stream.remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) void
int
size()
subList
(int fromIndex, int toIndex) T[]
toArray()
<T> T[]
toArray
(T[] a) void
writeExternal
(IDataOutput output) Store custom object to stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Field Details
-
log
private static final org.slf4j.Logger log -
source
-
-
Constructor Details
-
ArrayCollection
public ArrayCollection() -
ArrayCollection
-
-
Method Details
-
setSource
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
addAll
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
subList
-
readExternal
Description copied from interface:IExternalizable
Load custom object from stream.- Specified by:
readExternal
in interfaceIExternalizable
- Parameters:
input
- object to be used for data loading
-
writeExternal
Description copied from interface:IExternalizable
Store custom object to stream.- Specified by:
writeExternal
in interfaceIExternalizable
- Parameters:
output
- object to be used for data storing
-