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