JAL-1807 test
[jalviewjs.git] / bin / jalview / util / ReverseListIterator.js
1 Clazz.declarePackage ("jalview.util");
2 Clazz.load (["java.util.Iterator"], "jalview.util.ReverseListIterator", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.iterator = null;
5 Clazz.instantialize (this, arguments);
6 }, jalview.util, "ReverseListIterator", null, java.util.Iterator);
7 Clazz.makeConstructor (c$, 
8 function (stuff) {
9 this.iterator = stuff.listIterator (stuff.size ());
10 }, "java.util.List");
11 Clazz.overrideMethod (c$, "hasNext", 
12 function () {
13 return this.iterator.hasPrevious ();
14 });
15 Clazz.overrideMethod (c$, "next", 
16 function () {
17 return this.iterator.previous ();
18 });
19 Clazz.overrideMethod (c$, "remove", 
20 function () {
21 this.iterator.remove ();
22 });
23 });