class FieldsFromArray implements Extractor<Object, OUT[]> {

	@SuppressWarnings("unchecked")
	@Override
	public OUT[] extract(Object in) {
		OUT[] output = (OUT[]) Array.newInstance(clazz, order.length);
		for (int i = 0; i < order.length; i++) {
			output[i] = (OUT) Array.get(in, this.order[i]);
		}
		return output;
	}

	public  FieldsFromArray(Class<OUT> clazz, int... indexes);

}