@Override
		public boolean hasNext() {
			if (forward) {
				return index != size();
			} else {
				return index != -1;
			}
		}
Constructor.

@param forward	true for forward access
jphp-runtime/src/php/runtime/memory/support/IList.java