Esempio n. 1
0
            public Object previous()
            {
                checkModCount();
                if (!hasPrevious())
                {
                    throw new java.util.NoSuchElementException("Already at start of list.");
                }
                if (nextJ == null)
                {
                    nextJ = parent.root.get(nextIndexJ - 1);
                }
                else
                {
                    nextJ = nextJ.previous();
                }
                Object value = nextJ.getValue();

                current      = nextJ;
                currentIndex = --nextIndexJ;
                return(value);
            }