Package com.sun.corba.se.spi.ior
Class IdentifiableContainerBase
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.sun.corba.se.impl.ior.FreezableList
com.sun.corba.se.spi.ior.IdentifiableContainerBase
- All Implemented Interfaces:
Iterable,Collection,List
- 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.
- Author:
- Ken Cavanaugh
-
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 contained Identifiables with type given by id.Methods inherited from class com.sun.corba.se.impl.ior.FreezableList
add, equals, get, hashCode, isImmutable, makeElementsImmutable, makeImmutable, remove, set, size, subListMethods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRangeMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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 contained Identifiables with type given by id.
-