public Map < CategoryId , Category > getCategories ( ) { Map < CategoryId , Category > map = new HashMap <> ( ) ; for ( Rule rule : getAllRules ( ) ) { map . put ( rule . getCategory ( ) . getId ( ) , rule . getCategory ( ) ) ; } return map ; }
Get all rule categories for the current language .