Code example for CopyOnWriteArrayList

Methods: iterator

0
            return true; 
        }  
         
        if (level.isAcceptableDescendant(childLevel)) {
            // Chain of responsibility: process children in page order and add to the first descendant that accepts it. 
            for (BasicModelNode<?> childNode : children) {
                if (childNode.add(child, childType, childLevel))
                    return true; 
            } 
        } 
         
        return false; 
    } 
}