org.apache.aries.blueprint.container
Class ReferenceListRecipe.ManagedCollection
java.lang.Object
java.util.AbstractCollection
org.apache.aries.blueprint.container.ReferenceListRecipe.ManagedCollection
- All Implemented Interfaces:
- java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
- Enclosing class:
- ReferenceListRecipe
public static class ReferenceListRecipe.ManagedCollection
- extends java.util.AbstractCollection
- implements java.util.List, java.util.RandomAccess
Base class for managed collections.
TODO: list iterators should not be supported
TODO: rework the iteration so that if hasNext() has returned false, it will always return false
TODO: implement subList()
Methods inherited from class java.util.AbstractCollection |
contains, containsAll, isEmpty, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
contains, containsAll, equals, hashCode, isEmpty, toArray, toArray |
dispatchers
protected final DynamicCollection<ReferenceListRecipe.ServiceDispatcher> dispatchers
references
protected boolean references
ReferenceListRecipe.ManagedCollection
public ReferenceListRecipe.ManagedCollection(boolean references,
DynamicCollection<ReferenceListRecipe.ServiceDispatcher> dispatchers)
addDispatcher
public boolean addDispatcher(ReferenceListRecipe.ServiceDispatcher dispatcher)
removeDispatcher
public boolean removeDispatcher(ReferenceListRecipe.ServiceDispatcher dispatcher)
getDispatchers
public DynamicCollection<ReferenceListRecipe.ServiceDispatcher> getDispatchers()
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interface java.lang.Iterable
- Specified by:
iterator
in interface java.util.Collection
- Specified by:
iterator
in interface java.util.List
- Specified by:
iterator
in class java.util.AbstractCollection
size
public int size()
- Specified by:
size
in interface java.util.Collection
- Specified by:
size
in interface java.util.List
- Specified by:
size
in class java.util.AbstractCollection
add
public boolean add(java.lang.Object o)
- Specified by:
add
in interface java.util.Collection
- Specified by:
add
in interface java.util.List
- Overrides:
add
in class java.util.AbstractCollection
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection
- Specified by:
remove
in interface java.util.List
- Overrides:
remove
in class java.util.AbstractCollection
addAll
public boolean addAll(java.util.Collection c)
- Specified by:
addAll
in interface java.util.Collection
- Specified by:
addAll
in interface java.util.List
- Overrides:
addAll
in class java.util.AbstractCollection
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection
- Specified by:
clear
in interface java.util.List
- Overrides:
clear
in class java.util.AbstractCollection
retainAll
public boolean retainAll(java.util.Collection c)
- Specified by:
retainAll
in interface java.util.Collection
- Specified by:
retainAll
in interface java.util.List
- Overrides:
retainAll
in class java.util.AbstractCollection
removeAll
public boolean removeAll(java.util.Collection c)
- Specified by:
removeAll
in interface java.util.Collection
- Specified by:
removeAll
in interface java.util.List
- Overrides:
removeAll
in class java.util.AbstractCollection
get
public java.lang.Object get(int index)
- Specified by:
get
in interface java.util.List
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interface java.util.List
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interface java.util.List
listIterator
public java.util.ListIterator listIterator()
- Specified by:
listIterator
in interface java.util.List
listIterator
public java.util.ListIterator listIterator(int index)
- Specified by:
listIterator
in interface java.util.List
subList
public java.util.List<ReferenceListRecipe.ServiceDispatcher> subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface java.util.List
set
public java.lang.Object set(int index,
java.lang.Object element)
- Specified by:
set
in interface java.util.List
add
public void add(int index,
java.lang.Object element)
- Specified by:
add
in interface java.util.List
remove
public java.lang.Object remove(int index)
- Specified by:
remove
in interface java.util.List
addAll
public boolean addAll(int index,
java.util.Collection c)
- Specified by:
addAll
in interface java.util.List
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.