Sha256: ccf552c4380e81b1bdd1b9c119aa57deb95e74431a67a1111e8d413bf59f44b6

Contents?: true

Size: 445 Bytes

Versions: 28

Compression:

Stored size: 445 Bytes

Contents

package asunit.util {

	import asunit.util.Iterator;

	[ExcludeClass]
	public class ArrayIterator implements Iterator {
		private var list:Array;
		private var index:Number = 0;

		public function ArrayIterator(list:Array) {
			this.list = list;
		}

		public function hasNext():Boolean {
			return list[index] != null;
		}

		public function next():Object {
			return list[index++];
		}

		public function reset():void {
			index = 0;
		}
	}
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
asproject-0.1.69 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.71 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.74 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.75 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.80 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.84 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.89 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.92 templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as