public final void setCommandIndexMap ( final Map < String , Command > pcommandIndexMap ) { if ( pcommandIndexMap instanceof HashMap ) { this . commandIndexMap = ( HashMap < String , Command > ) pcommandIndexMap ; } else { this . commandIndexMap = new HashMap <> ( ) ; this . commandIndexMap . putAll ( pcommandIndexMap ) ; } }
Sets the command index map .