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

seven.wapperInt.WrapperFactory Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package seven.wapperInt;

//=======================================================
//		          .----.
//		       _.'__    `.
//		   .--(^)(^^)---/!\
//		 .' @          /!!!\
//		 :         ,    !!!!
//		  `-..__.-' _.-\!!!/
//		        `;_:    `"'
//		      .'"""""`.
//		     /,  ya ,\\
//		    //狗神保佑\\
//		    `-._______.-'
//		    ___`. | .'___
//		   (______|______)
//=======================================================

import seven.config.Config;
import seven.wapperInt.wapperRef.WrapperObj;
import seven.wapperInt.wapperRef.sysWppers.ResWrapperMap;
import seven.wapperInt.wapperRef.sysWppers.ResWrapperObj;

import java.util.Map;
import java.util.function.Consumer;

/**
 * @author Seven
 * FileName: WrapperFactory.java
 * Created by Seven on 19-4-26
 **/
@SuppressWarnings("all")
public class WrapperFactory {

    private WrapperFactory(){}

    public static WrapperObj> MakeMap(Consumer consumer){
        return new ResWrapperMap(consumer);
    }

    public static  WrapperObj MakeObj(Consumer consumer,Class clazz){
        return new ResWrapperObj(consumer,clazz);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy