int function ( VehicleSpec arg0 ) { Integer loc0 = nameToId . get ( arg0 . getName ( ) ) ; return ( loc0 != null ) ? loc0 : ( - 1 ) ; }
get the id of the vehicle specification . it returns < 0 if the vehicle specification has not been registered . concode_field_sep List<VehicleSpec> vehicleSpecs concode_elem_sep Map<String,Integer> nameToId concode_field_sep int getIdByName concode_elem_sep VehicleSpec getVehicleSpecById concode_elem_sep int getNumOfSpec concode_elem_sep void registerSpec concode_elem_sep boolean replaceSpec concode_elem_sep VehicleSpec getVehicleSpecByName