Class IdentifiableContainerBase<E extends Identifiable>

All Implemented Interfaces:
Iterable<E>, Collection<E>, 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 Details

    • IdentifiableContainerBase

      public IdentifiableContainerBase()
      Create this class with an empty list of identifiables. The current implementation uses an ArrayList.
  • Method Details

    • iteratorById

      public Iterator<E> iteratorById(int id)
      Return an iterator which iterates over all contained Identifiables with type given by id.
      Parameters:
      id - id of type
      Returns:
      Iterator of contained Identifiables