Class CDOModelImpl.InResourceList

  • All Implemented Interfaces:
    java.lang.Iterable<org.eclipse.emf.ecore.EObject>, java.util.Collection<org.eclipse.emf.ecore.EObject>, java.util.List<org.eclipse.emf.ecore.EObject>, org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject>
    Enclosing class:
    CDOModelImpl

    public static class CDOModelImpl.InResourceList
    extends LazyList.NonCachingList<org.eclipse.emf.ecore.EObject>
    LazyList that returns only instances within a given Resource.
    • Field Detail

      • resource

        protected final org.eclipse.emf.ecore.resource.Resource resource
    • Constructor Detail

      • InResourceList

        public InResourceList​(java.lang.Iterable<org.eclipse.emf.ecore.EObject> dataSource,
                              org.eclipse.emf.ecore.resource.Resource resource)
        Creates a new CDOModelImpl.InResourceList around dataSource.
        Parameters:
        dataSource - the underlying data source
        resource - the resource of which to return the instances
    • Method Detail

      • iterator

        public java.util.Iterator<org.eclipse.emf.ecore.EObject> iterator()
        Specified by:
        iterator in interface java.util.Collection<org.eclipse.emf.ecore.EObject>
        Specified by:
        iterator in interface java.lang.Iterable<org.eclipse.emf.ecore.EObject>
        Specified by:
        iterator in interface java.util.List<org.eclipse.emf.ecore.EObject>
        Overrides:
        iterator in class LazyCollection<org.eclipse.emf.ecore.EObject>