base/common/src/main/com/thesett/common/util/LazyPagingList.java
public T get(int index)
    {
        /*log.fine("public T get(int index): called");*/
        /*log.fine("index = " + index);*/

        // Turn the absolute index into a block and offset.
        int block = index / blockSize;
        int offset = index % blockSize;

        /*log.fine("block = " + block);*/
        /*log.fine("offset = " + offset);*/

        // Check if the desired block is already cached.
        List<T> blockList = blockMap.get(block);

        // Fetch the block if it is not already cached and cache it.
        if (blockList == null)
        {
            blockList = cacheBlock(block);
        }

        // Get the element from the offset within the cached block.
        return blockList.get(offset);
    }
public T get(int index)
    {
        /*log.fine("public T get(int index): called");*/
        /*log.fine("index = " + index);*/

        // Turn the absolute index into a block and offset.
        int block = index / blockSize;
        int offset = index % blockSize;

        /*log.fine("block = " + block);*/
        /*log.fine("offset = " + offset);*/

        // Check if the desired block is already cached.
        List<T> blockList = blockMap.get(block);

        // Fetch the block if it is not already cached and cache it.
        if (blockList == null)
        {
            blockList = cacheBlock(block);
        }

        // Get the element from the offset within the cached block.
        return blockList.get(offset);
    }
public T get ( int index ) { /*log.fine("public T get(int index): called");*/ /*log.fine("index = " + index);*/ // Turn the absolute index into a block and offset. int block = index / blockSize ; int offset = index % blockSize ; /*log.fine("block = " + block);*/ /*log.fine("offset = " + offset);*/ // Check if the desired block is already cached. List < T > blockList = blockMap . get ( block ) ; // Fetch the block if it is not already cached and cache it. if ( blockList == null ) { blockList = cacheBlock ( block ) ; } // Get the element from the offset within the cached block. return blockList . get ( offset ) ; }
Gets the element from the list at the specified index. If the indexes block is not currently cached then a call
is made to the {@link #getBlock} method to fetch it.

@param  index The offset into the list to retrieve.

@return The element at the specified index.
Gets the element from the list at the specified index . If the indexes block is not currently cached then a call is made to the { @link #getBlock } method to fetch it .