| package org.eclipse.osbp.dsl.dto.lib; |
| |
| import java.util.List; |
| import java.util.function.Consumer; |
| |
| public interface IEntityMappingList<D> extends List<D> { |
| |
| /** |
| * Maps the content of this list to entities list using the adder and |
| * remover consumer instance. |
| * |
| * @param childMapper |
| * @param oppositeAdder |
| * @param oppositeRemover |
| */ |
| public abstract <E> void mapToEntity(IMapper<D, E> childMapper, |
| Consumer<E> oppositeAdder, Consumer<E> oppositeRemover); |
| |
| public List<D> getAdded(); |
| |
| public List<D> getRemoved(); |
| |
| public List<D> getUpdated(); |
| } |