Package com.sun.corba.ee.spi.ior
Class IdentifiableContainerBase<E extends Identifiable>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
com.sun.corba.ee.impl.ior.FreezableList<E>
com.sun.corba.ee.spi.ior.IdentifiableContainerBase<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
- Direct Known Subclasses:
IORImpl
,IORTemplateImpl
,TaggedProfileTemplateBase
Convenience class for defining objects that contain lists of Identifiables.
Mainly implements iteratorById. Also note that the constructor creates the
list, which here is always an ArrayList, as this is much more efficient overall
for short lists.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionCreate this class with an empty list of identifiables. -
Method Summary
Modifier and TypeMethodDescriptioniteratorById
(int id) Return an iterator which iterates over all containedIdentifiables
with type given by id.Methods inherited from class com.sun.corba.ee.impl.ior.FreezableList
add, equals, get, hashCode, isImmutable, makeElementsImmutable, makeImmutable, remove, set, size, subList
Methods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
IdentifiableContainerBase
public IdentifiableContainerBase()Create this class with an empty list of identifiables. The current implementation uses an ArrayList.
-
-
Method Details
-
iteratorById
Return an iterator which iterates over all containedIdentifiables
with type given by id.- Parameters:
id
- id of type- Returns:
- Iterator of contained
Identifiables
-