Code example for Collection

Methods: add

0
 
    @Override 
    @SuppressWarnings("unchecked") 
    public void setChild(final FactoryBuilderSupport builder, final Object parent, final Object child) {
        if (parent instanceof Collection && child instanceof CompilationCustomizer) {
            ((Collection) parent).add(child);
        } 
    } 
 
 
    @SuppressWarnings("unchecked") 
    public Object postCompleteNode(final FactoryBuilderSupport factory, final Object parent, final Object node) {
        if (node instanceof List) {
            List col = (List) node;
            return col.toArray(new CompilationCustomizer[col.size()]);
        } 
        return node;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java