protected void appendList ( StringBuilder sql , List < ? > list , String init , String sep ) { boolean first = true ; for ( Object s : list ) { if ( first ) { sql . append ( init ) ; } else { sql . append ( sep ) ; } sql . append ( s ) ; first = false ; } }
Constructs a list of items with given separators .