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

Version Path
asproject-0.1.21 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.27 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.29 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.30 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.28 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.31 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.36 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.32 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.33 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.35 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.37 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.34 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.40 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.41 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.42 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.43 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.38 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.44 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.60 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
asproject-0.1.68 templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as