Code example for Collection

Methods: addAll

0
        IndexConfig indexConfig = (IndexConfig)super.clone(); 
 
        indexConfig.name = name; 
 
        indexConfig.fieldNames = new ArrayList<String>(); 
        indexConfig.fieldNames.addAll(fieldNames); 
 
        return indexConfig; 
    } 
}