All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ochafik.util.IntArray Maven / Gradle / Ivy

There is a newer version: 0.12
Show newest version
/**
 * 
 */
package com.ochafik.util;

import java.util.Iterator;

public interface IntArray extends Iterable {
	public int[] getBackingArray();
	public int size();
	public int get(int pos);
	public int[] toArray();
	
	public class IntIterator implements Iterator {
		int i = -1;
		IntArray array;
		
		public boolean hasNext() {
			return i < array.size() - 1;
		}

		public Integer next() {
			return array.get(++i);
		}

		public void remove() {
			throw new UnsupportedOperationException();
		}
		
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy