@SuppressWarnings("unchecked")
	public E[] getElements(){
		if (empty) return (E[]) new Object[0];
		Object ret[] = new Object[size()];
		int n=0;
		for(int i=begin;; i++){
			if (i==MAX) i=0;
			if (n!=0 && i==end) break;
			ret[n++] = VALUES[i];
		}
		return (E[])ret;
	}