/** * Private helper shared by constructor SoyListData(Iterable) and add(Object...). * @param data The data to add. */ private void add(Iterable<?> data) { for (Object el : data) { try { add(SoyData.createFromExistingData(el)); } catch (SoyDataException sde) { sde.prependIndexToDataPath(list.size()); throw sde; } } }
/** * Private helper shared by constructor SoyListData(Iterable) and add(Object...). * * @param data The data to add. */ private void add(Iterable<?> data) { for (Object el : data) { try { add(SoyData.createFromExistingData(el)); } catch (SoyDataException sde) { sde.prependIndexToDataPath(list.size()); throw sde; } } }
/** * Private helper shared by constructor SoyListData(Iterable) and add(Object...). * * @param data The data to add. */ private void add(Iterable<?> data) { for (Object el : data) { try { add(SoyData.createFromExistingData(el)); } catch (SoyDataException sde) { sde.prependIndexToDataPath(list.size()); throw sde; } } }