org.red5.server
Class ClientList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.red5.server.ClientList<E>
- Type Parameters:
E
- type of class
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, List<E>
public class ClientList<E>
- extends AbstractList<E>
Client list, implemented using weak references to prevent memory leaks.
- Author:
- Paul Gregoire ([email protected])
Methods inherited from class java.util.AbstractList |
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList |
ClientList
@ConstructorProperties(value="")
public ClientList()
ClientList
@ConstructorProperties(value="c")
public ClientList(Collection<E> c)
add
public boolean add(E element)
- Specified by:
add
in interface Collection<E>
- Specified by:
add
in interface List<E>
- Overrides:
add
in class AbstractList<E>
add
public void add(int index,
E element)
- Specified by:
add
in interface List<E>
- Overrides:
add
in class AbstractList<E>
remove
public E remove(int index)
- Specified by:
remove
in interface List<E>
- Overrides:
remove
in class AbstractList<E>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<E>
- Specified by:
remove
in interface List<E>
- Overrides:
remove
in class AbstractCollection<E>
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection<E>
- Specified by:
contains
in interface List<E>
- Overrides:
contains
in class AbstractCollection<E>
size
public int size()
- Specified by:
size
in interface Collection<E>
- Specified by:
size
in interface List<E>
- Specified by:
size
in class AbstractCollection<E>
get
public E get(int index)
- Specified by:
get
in interface List<E>
- Specified by:
get
in class AbstractList<E>
Copyright © 2006-2012 The Red5 Project