public Object[] toArrayHelper(int offset) { final int N = colGetSize(); Object[] result = new Object[N]; for (int i=0; i<N; i++) { result[i] = colGetEntry(i, offset); } return result; };
public <T> T[] toArrayHelper(T[] array, int offset) { final int N = colGetSize(); if (array.length < N) { @SuppressWarnings("unchecked") T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), N); array = newArray; } for (int i=0; i<N; i++) { array[i] = (T)colGetEntry(i, offset); } if (array.length > N) { array[N] = null; } return array; }
public Object[] toArrayHelper(int offset) { final int N = colGetSize(); Object[] result = new Object[N]; for (int i=0; i<N; i++) { result[i] = colGetEntry(i, offset); } return result; };
public Object[] toArrayHelper(int offset) { final int N = colGetSize(); Object[] result = new Object[N]; for (int i=0; i<N; i++) { result[i] = colGetEntry(i, offset); } return result; };
public <T> T[] toArrayHelper(T[] array, int offset) { final int N = colGetSize(); if (array.length < N) { @SuppressWarnings("unchecked") T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), N); array = newArray; } for (int i=0; i<N; i++) { array[i] = (T)colGetEntry(i, offset); } if (array.length > N) { array[N] = null; } return array; }
public <T> T[] toArrayHelper(T[] array, int offset) { final int N = colGetSize(); if (array.length < N) { @SuppressWarnings("unchecked") T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), N); array = newArray; } for (int i=0; i<N; i++) { array[i] = (T)colGetEntry(i, offset); } if (array.length > N) { array[N] = null; } return array; }