You can do the following:
public final static ArrayList<?>[] STAIR_STEPS_ALL = {
STAIR_STEPS_NORTH, STAIR_STEPS_SOUTH, STAIR_STEPS_WEST,
STAIR_STEPS_EAST
};
However, when you retrieve one you will have to cast it. The SuppressWarnings statement isn't required as it just gets rid of a warning.
public static void main(String[] args) {
@SuppressWarnings("unchecked")
ArrayList<AxisAlignedBB> b = (ArrayList<AxisAlignedBB>)STAIR_STEPS_ALL[0];
}
But there is really no point to all of that. Since you have to cast you may as well declare the array as type Object and then cast as I did up above.
Regards,
Jim