public int getNumberOfCategorizedArticles ( Wikipedia pWiki , CategoryGraph catGraph ) throws WikiApiException { if ( categorizedArticleSet == null ) { // has not been initialized yet iterateCategoriesGetArticles ( pWiki , catGraph ) ; } return categorizedArticleSet . size ( ) ; }
If the return value has been already computed it is returned else it is computed at retrieval time .