Code example for LinkedList

Methods: toArray

0
    public LinkedList<MDFSProtocolMetaData> getChildren() {
        return children;
    } 
 
    public MDFSProtocolMetaData[] getChildernArray(MDFSProtocolMetaData[] children){
        this.children.toArray(children);
        return children;
    } 
    public int getChildrenSize(){ 
        if(children == null){
            return 0; 
        } 
        return children.size();
    } 
 
    public void setChildren(LinkedList<MDFSProtocolMetaData> children) {
        this.children = children;
    } 
 
    public void addChild(MDFSProtocolMetaData child){
        LinkedList<MDFSProtocolMetaData> children = getChildren();