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 ([email protected]), Paul Gregoire ([email protected])
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()intlistIterator(int index) voidreadExternal(IDataInput input) Load custom object from stream.remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) voidintsize()subList(int fromIndex, int toIndex) T[]toArray()<T> T[]toArray(T[] a) voidwriteExternal(IDataOutput output) Store custom object to stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
addAll
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
readExternal
Description copied from interface:IExternalizableLoad custom object from stream.- Specified by:
readExternalin interfaceIExternalizable- Parameters:
input- object to be used for data loading
-
writeExternal
Description copied from interface:IExternalizableStore custom object to stream.- Specified by:
writeExternalin interfaceIExternalizable- Parameters:
output- object to be used for data storing
-