Code example for ListIterator

Methods: previousIndexset

    public void set(Object o)
         * (java.util.ListIterator API docs) 
         * "Note that the remove() and set(Object) methods are not defined in terms of the cursor position; 
         * they are defined to operate on the last element returned by a call to next() or previous()." 
        ownerSCO.set(reverse ? iter.nextIndex() : iter.previousIndex(), o);
Connect your IDE to all the code out there  Get Codota for Java