1 Clazz.declarePackage ("jalview.util");
\r
2 Clazz.load (["java.util.Iterator"], "jalview.util.ReverseListIterator", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.iterator = null;
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, jalview.util, "ReverseListIterator", null, java.util.Iterator);
\r
7 Clazz.makeConstructor (c$,
\r
9 this.iterator = stuff.listIterator (stuff.size ());
\r
10 }, "java.util.List");
\r
11 Clazz.overrideMethod (c$, "hasNext",
\r
13 return this.iterator.hasPrevious ();
\r
15 Clazz.overrideMethod (c$, "next",
\r
17 return this.iterator.previous ();
\r
19 Clazz.overrideMethod (c$, "remove",
\r
21 this.iterator.remove ();
\r