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

com.neko233.toolchain.ripplex.strategy.merge.KeepFirstMergeStrategy Maven / Gradle / Ivy

package com.neko233.toolchain.ripplex.strategy.merge;

import java.util.function.BiFunction;

/**
 * @author SolarisNeko
 * Date on 2022-04-30
 */
public class KeepFirstMergeStrategy implements MergeStrategy {

    private static final MergeStrategy INSTANCE = new KeepFirstMergeStrategy();

    public static MergeStrategy getInstance() {
        return INSTANCE;
    }

    @Override
    public BiFunction getMergeBiFunction(Class sumType) {
        return (t1, t2) -> t1;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy