private Collection<String> checkAndPutToCollection(Collection<String> collection, String[] names) {
        if (collection == null) {
            collection = new HashSet<String>();
        }
        Collections.addAll(collection, names);
        return collection;
    }
private Collection<String> checkAndPutToCollection(Collection<String> collection, String[] names) {
        if (collection == null) {
            collection = new HashSet<String>();
        }
        Collections.addAll(collection, names);
        return collection;
    }
private Collection < String > checkAndPutToCollection ( Collection < String > collection , String [ ] names ) { if ( collection == null ) { collection = new HashSet < String > ( ) ; } Collections . addAll ( collection , names ) ; return collection ; }
<br>
2013-10-28 上午11:11:24

@param collection
@param names
@return
<br > 2013 - 10 - 28 上午11 : 11 : 24