Sha256: 17eec9dd955da505dc772e4f14e3464f1b90b940afb969201b7db0baa882aeac
Contents?: true
Size: 526 Bytes
Versions: 28
Compression:
Stored size: 526 Bytes
Contents
import asunit.util.Iterator; import asunit.errors.IllegalOperationError; class asunit.util.ArrayIterator implements Iterator { private var list:Array; private var index:Number = 0; public function ArrayIterator(list:Array) { if(list == null) { throw new IllegalOperationError("ArrayIterator needs an array in it's constructor"); } this.list = list; } public function hasNext():Boolean { return (list[index] != null); } public function next():Object { return list[index++]; } }
Version data entries
28 entries across 28 versions & 1 rubygems