public List < T > cacheBlock ( int block ) { /*log.fine("public List<T> cacheBlock(int block): called");*/ // Get the new block. List < T > blockList = getBlock ( block * blockSize , blockSize ) ; // Cache it. blockMap . put ( block , blockList ) ; /*log.fine("Cached block " + block + " with list of size " + blockList.size());*/ return blockList ; }
Fetches and caches the specified block .