]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/CollectionSupportImpl.java
Merge branch 'master' into private/eclipse-4.7
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / CollectionSupportImpl.java
index 5f9a8993ec61b313c2f57ca2438da6277be71348..37c89ff5f4dee3d0ac0a8fd0abd6b2a21207702b 100644 (file)
@@ -633,6 +633,11 @@ public class CollectionSupportImpl implements CollectionSupport {
                this.backend = new TIntArrayList();
        }
 
+       ResourceList(SessionImplSocket session, int capacity) {
+               this.session = session;
+               this.backend = new TIntArrayList(capacity);
+       }
+
        ResourceList(SessionImplSocket session, Collection<Resource> rs) {
                this.session = session;
                this.backend = new TIntArrayList(rs.size());
@@ -853,6 +858,11 @@ public class CollectionSupportImpl implements CollectionSupport {
                return new ResourceList(session);
        }
 
+       @Override
+       public List<Resource> createList(int capacity) {
+               return new ResourceList(session, capacity);
+       }
+
     static final class StatementList implements Collection<Statement> {
        
        final private SessionImplSocket session;