X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FCollectionSupportImpl.java;h=37c89ff5f4dee3d0ac0a8fd0abd6b2a21207702b;hp=5f9a8993ec61b313c2f57ca2438da6277be71348;hb=6f11a60dee43d620d500c0cf5af34a1d91c80a8b;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07 diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/CollectionSupportImpl.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/CollectionSupportImpl.java index 5f9a8993e..37c89ff5f 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/CollectionSupportImpl.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/CollectionSupportImpl.java @@ -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 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 createList(int capacity) { + return new ResourceList(session, capacity); + } + static final class StatementList implements Collection { final private SessionImplSocket session;