Savable[][] savables = readSavableArray2D(name, null); ArrayList[] arrayLists = new ArrayList[savables.length]; for (int i = 0; i < savables.length; i++) { arrayLists[i] = savableArrayListFromArray(savables[i]); } value = arrayLists; fieldData.put(field.alias, value);
Savable[][] savables = readSavableArray2D(name, null); if (savables != null) { ArrayList[] arrayLists = new ArrayList[savables.length]; for (int i = 0; i < savables.length; i++) { arrayLists[i] = savableArrayListFromArray(savables[i]); } value = arrayLists; } else value = defVal; fieldData.put(field.alias, value);
    public ArrayList[] readSavableArrayListArray(String name, ArrayList[] defVal) throws IOException {        BinaryClassField field = cObj.nameFields.get(name);        if (field == null || !fieldData.containsKey(field.alias)) return defVal;        Object value = fieldData.get(field.alias);        if (value instanceof ID[][]) {	    		// read 2D Savable array and convert to ArrayList array        		Savable[][] savables = readSavableArray2D(name, null);	    		ArrayList[] arrayLists = new ArrayList[savables.length];	    		for (int i = 0; i < savables.length; i++) {	        		arrayLists[i] = savableArrayListFromArray(savables[i]);			}	    		value = arrayLists;	    		fieldData.put(field.alias, value);        }        return (ArrayList[]) value;    }