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:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
- Direct Known Subclasses:
IORImpl
,IORTemplateImpl
,TaggedProfileTemplateBase
public class IdentifiableContainerBase<E extends Identifiable> extends FreezableList<E>
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.
-
-
Constructor Summary
Constructors Constructor Description IdentifiableContainerBase()
Create this class with an empty list of identifiables.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<E>
iteratorById(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
-
-
-
-
Method Detail
-
iteratorById
public java.util.Iterator<E> iteratorById(int id)
Return an iterator which iterates over all containedIdentifiables
with type given by id.- Parameters:
id
- id of type- Returns:
- Iterator of contained
Identifiables
-
-