public void changeDefaultNames(String type){
  String[] convert=CONVERT_TYPES.split(",");
  String[] types=TYPES.split(",");
  if (convert.length != types.length) {
    log.error("Properties file doesn't have equal length conversion strings, carTypeNames {}, carTypeConvert {}",types.length,convert.length);
    return;
  }
  if (type.equals(Setup.DESCRIPTIVE)) {
    for (int i=0; i < convert.length; i++) {
      replaceName(convert[i],types[i]);
    }
    String[] aarTypes=ARR_TYPES.split(",");
    for (int i=0; i < aarTypes.length; i++) {
      list.remove(aarTypes[i]);
    }
    for (int i=0; i < types.length; i++) {
      if (!list.contains(types[i])) {
        list.add(types[i]);
      }
    }
  }
 else {
    for (int i=0; i < convert.length; i++) {
      replaceName(types[i],convert[i]);
    }
    for (int i=0; i < types.length; i++) {
      list.remove(types[i]);
    }
    types=ARR_TYPES.split(",");
    for (int i=0; i < types.length; i++) {
      if (!list.contains(types[i])) {
        list.add(types[i]);
      }
    }
  }
}

public void changeDefaultNames ( String type ) { String [ ] convert = CONVERT_TYPES . split ( "," ) ; String [ ] types = TYPES . split ( "," ) ; if ( convert . length != types . length ) { log . error ( "Properties file doesn't have equal length conversion strings, carTypeNames {}, carTypeConvert {}" , types . length , convert . length ) ; return ; } if ( type . equals ( Setup . DESCRIPTIVE ) ) { for ( int i = 0 ; i < convert . length ; i ++ ) { replaceName ( convert [ i ] , types [ i ] ) ; } String [ ] aarTypes = ARR_TYPES . split ( "," ) ; for ( int i = 0 ; i < aarTypes . length ; i ++ ) { list . remove ( aarTypes [ i ] ) ; } for ( int i = 0 ; i < types . length ; i ++ ) { if ( ! list . contains ( types [ i ] ) ) { list . add ( types [ i ] ) ; } } } else { for ( int i = 0 ; i < convert . length ; i ++ ) { replaceName ( types [ i ] , convert [ i ] ) ; } for ( int i = 0 ; i < types . length ; i ++ ) { list . remove ( types [ i ] ) ; } types = ARR_TYPES . split ( "," ) ; for ( int i = 0 ; i < types . length ; i ++ ) { if ( ! list . contains ( types [ i ] ) ) { list . add ( types [ i ] ) ; } } } }
changes the car types from descriptive to aar , or the other way . only removes the default car type names from the list
