@ Pure public static String getFirstFreeBusStopName ( BusNetwork busNetwork ) { if ( busNetwork == null ) { return null ; } int nb = busNetwork . getBusStopCount ( ) ; String name ; do { ++ nb ; name = Locale . getString ( "NAME_TEMPLATE" , Integer . toString ( nb ) ) ; //$NON-NLS-1$ } while ( busNetwork . getBusStop ( name ) != null ) ; return name ; }
Replies a bus stop name that was not exist in the specified bus network .