private static int setID ( String prefix , int identifier , IChemObject object , List < String > tabuList ) { identifier += 1 ; while ( tabuList . contains ( prefix + identifier ) ) { identifier += 1 ; } object . setID ( prefix + identifier ) ; tabuList . add ( prefix + identifier ) ; return identifier ; }
Sets the ID on the object and adds it to the tabu list .