/** * Factory method to create or return a data page for the indicated block. */ static DataPage getDataPageView(BlockIo block, int blockSize) { BlockView view = block.getView(); if (view != null && view instanceof DataPage) return (DataPage) view; else return new DataPage(block, blockSize); }
/** * Factory method to create or return a data page for the indicated block. */ static DataPage getDataPageView( BlockIo block ) { BlockView view = block.getView(); if ( view != null && view instanceof DataPage ) { return ( DataPage ) view; } else { return new DataPage( block ); } }
/** * Factory method to create or return a data page for the indicated block. */ static DataPage getDataPageView( BlockIo blockIo ) { BlockView view = blockIo.getView(); if ( ( view != null ) && ( view instanceof DataPage ) ) { return ( DataPage ) view; } else { return new DataPage( blockIo ); } }
/** * Factory method to create or return a data page for the indicated block. */ static DataPage getDataPageView( BlockIo block ) { BlockView view = block.getView(); if ( view != null && view instanceof DataPage ) { return ( DataPage ) view; } else { return new DataPage( block ); } }