X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2FTableIntAllocatorAdapter.java;h=d4994e694064fd6c1b7fec21c350240a08beae6b;hp=d5111a16a76b81ff00959e13038a3a9ed6b274b9;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/TableIntAllocatorAdapter.java b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/TableIntAllocatorAdapter.java index d5111a16a..d4994e694 100644 --- a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/TableIntAllocatorAdapter.java +++ b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/TableIntAllocatorAdapter.java @@ -1,17 +1,17 @@ -package org.simantics.db.impl; - -public class TableIntAllocatorAdapter implements IntAllocatorI { - private Table table; - public TableIntAllocatorAdapter(Table table) { - this.table = table; - } - @Override - public int allocate(int size) { - int tableIndex = table.createNewElement(size); - return table.checkIndexAndGetRealIndex(tableIndex, size); - } - @Override - public int[] getTable() { - return table.getTable(); - } -} +package org.simantics.db.impl; + +public class TableIntAllocatorAdapter implements IntAllocatorI { + private Table table; + public TableIntAllocatorAdapter(Table table) { + this.table = table; + } + @Override + public int allocate(int size) { + int tableIndex = table.createNewElement(size); + return table.checkIndexAndGetRealIndex(tableIndex, size); + } + @Override + public int[] getTable() { + return table.getTable(); + } +}