说我有这样的课程:
class Bean
private int[] deliveryOption;
public Bean() {
deliveryOption = new int[3];
}
public int getDeliveryOption(int index) {
return deliveryOption[index];
}
public void setDeliveryOption(int index, int deliveryOption) {
this.deliveryOption[index] = deliveryOption;
}
}
当我使用BeanUtils或PropertyUtils describe方法时,该属性将不会在地图中返回。如何发现某个类具有索引属性?
TIA