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 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 containedIdentifiableswith type given by id.Methods inherited from class FreezableList
add, equals, get, hashCode, isImmutable, makeElementsImmutable, makeImmutable, remove, set, size, subListMethods inherited from class AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRangeMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface 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 containedIdentifiableswith type given by id.- Parameters:
id- id of type- Returns:
- Iterator of contained
Identifiables
-