public MaterialSection getSectionByTitle ( String title ) { for ( MaterialSection section : sectionList ) { if ( section . getTitle ( ) . equals ( title ) ) { return section ; } } for ( MaterialSection section : bottomSectionList ) { if ( section . getTitle ( ) . equals ( title ) ) return section ; } return null ; }
Get a setted section knowing his title