/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }
/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }
/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }
/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }