private static Collection < TileRef > getTiles ( Map < Transition , Collection < TileRef > > transitions , Transition transition ) { if ( ! transitions . containsKey ( transition ) ) { transitions . put ( transition , new HashSet < TileRef > ( ) ) ; } return transitions . get ( transition ) ; }
Get the tiles for the transition . Create empty list if new transition .