1 package org.simantics.db.impl;
3 public class TableIntAllocatorAdapter implements IntAllocatorI {
4 private Table<int[]> table;
5 public TableIntAllocatorAdapter(Table<int[]> table) {
9 public int allocate(int size) {
10 int tableIndex = table.createNewElement(size);
11 return table.checkIndexAndGetRealIndex(tableIndex, size);
14 public int[] getTable() {
15 return table.getTable();