
com.github.phantomthief.view.mapper.ViewMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of model-view-builder Show documentation
Show all versions of model-view-builder Show documentation
A hierarchy model builder with view mapper
The newest version!
package com.github.phantomthief.view.mapper;
import static java.util.stream.Collectors.toList;
import java.util.Collection;
import java.util.List;
/**
* @author w.vela
*/
public interface ViewMapper {
V map(M model, B buildContext);
default List map(Collection models, B buildContext) {
return models.stream().map(i -> this. map(i, buildContext)).collect(toList());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy