public static IDrawerItem getDrawerItem ( List < IDrawerItem > drawerItems , long identifier ) { if ( identifier != - 1 ) { for ( IDrawerItem drawerItem : drawerItems ) { if ( drawerItem . getIdentifier ( ) == identifier ) { return drawerItem ; } } } return null ; }
gets the drawerItem with the specific identifier from a drawerItem list