Code example for Vector

Methods: add, contains

0
            try { 
                File f = new File(component);
                if (f.exists())
                { 
                    File key = f.getCanonicalFile();
                    if (!_elements.contains(key))
                    { 
                        _elements.add(key);
                        return true; 
                    } 
                } 
            } catch (IOException e) {}
        } 
        return false; 
    } 
     
    public boolean addComponent(File component)
    { 
        if (component != null) {
            try { 
                if (component.exists()) {