All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.phantomthief.view.mapper.ViewMapper Maven / Gradle / Ivy

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