@Test public void doesOnlyActivateNeededItems() { final MemoryStorage memoryFileSystem = new MemoryStorage(); storeItems(memoryFileSystem); ObjectContainer container = newDB(memoryFileSystem); final AtomicInteger counter = activationCounter(container); final ObjectSet<StoredItems> queryResult = container.query(StoredItems.class); List<StoredItems> pagedResult = PagingUtility.paging(queryResult, 2, 2); for (StoredItems storedItems : pagedResult) { } assertEquals(2, counter.get()); }
public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } private  PagingUtility(); }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } private  PagingUtility(); static List<T> paging(List<T> listToPage, int limit); static List<T> paging(List<T> listToPage, int start, int limit); }
PagingUtility { public static <T> List<T> paging(List<T> listToPage, int limit){ return paging(listToPage,0,limit); } private  PagingUtility(); static List<T> paging(List<T> listToPage, int limit); static List<T> paging(List<T> listToPage, int start, int limit);  }