Code example for Vector

Methods: elementAt, indexOf

0
    } 
 
    public Node getNextSibling() {
        if ((mParentNode != null) && (this != mParentNode.getLastChild())) {
            Vector<Node> siblings = ((NodeImpl)mParentNode).mChildNodes;
            int indexOfThis = siblings.indexOf(this);
            return siblings.elementAt(indexOfThis + 1);
        } 
        return null; 
    } 
 
    public abstract String getNodeName();
 
    public abstract short getNodeType(); 
 
    public String getNodeValue() throws DOMException {
        // Default behaviour. Override if required. 
        return null; 
    } 
 
    public Document getOwnerDocument() {