mvvmfx/src/main/java/de/saxsys/mvvmfx/utils/itemlist/ListTransformation.java
private void processAddEvent(
			ListChangeListener.Change<? extends SourceType> listEvent) {

		final List<TargetType> toAdd = new ArrayList<>();
		for (int index = listEvent.getFrom(); index < listEvent.getTo(); index++) {
			final SourceType item = listEvent.getList().get(index);
			toAdd.add(function.apply(item));
		}
		viewModelList.addAll(listEvent.getFrom(), toAdd);
	}
private void processAddEvent(
			ListChangeListener.Change<? extends SourceType> listEvent) {

		final List<TargetType> toAdd = new ArrayList<>();
		for (int index = listEvent.getFrom(); index < listEvent.getTo(); index++) {
			final SourceType item = listEvent.getList().get(index);
			toAdd.add(function.apply(item));
		}
		viewModelList.addAll(listEvent.getFrom(), toAdd);
	}
private void processAddEvent ( ListChangeListener . Change < ? extends SourceType > listEvent ) { final List < TargetType > toAdd = new ArrayList <> ( ) ; for ( int index = listEvent . getFrom ( ) ; index < listEvent . getTo ( ) ; index ++ ) { final SourceType item = listEvent . getList ( ) . get ( index ) ; toAdd . add ( function . apply ( item ) ) ; } viewModelList . addAll ( listEvent . getFrom ( ) , toAdd ) ; }
Maps an add event of the model list to new elements of the {@link #viewModelList}.

@param listEvent
to analyze
Maps an add event of the model list to new elements of the { @link #viewModelList } .