src/main/java/org/jsoup/nodes/Element.java
/**
     * Gets the previous element sibling of this element.
     * @return the previous element, or null if there is no previous element
     * @see #nextElementSibling()
     */
Gets the previous element sibling of this element.
@return the previous element, or null if there is no previous element
@see #nextElementSibling()
Gets the previous element sibling of this element . @return the previous element or null if there is no previous element @see #nextElementSibling ()
public Element previousElementSibling() {
        List<Element> siblings = parent().children();
        Integer index = indexInList(this, siblings);
        Validate.notNull(index);
        if (index > 0)
            return siblings.get(index-1);
        else
            return null;
    }
public Element previousElementSibling ( ) { List < Element > siblings = parent ( ) . children ( ) ; Integer index = indexInList ( this , siblings ) ; Validate . notNull ( index ) ; if ( index > 0 ) return siblings . get ( index - 1 ) ; else return null ; }
Gets the previous element sibling of this element.
Gets the previous element sibling of this element .