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

dev.utils.common.able.Encodeable Maven / Gradle / Ivy

package dev.utils.common.able;

/**
 * detail: 通用 Encode 接口
 * @author Ttt
 * 
 *     所有通用快捷 Encode 接口定义存储类
 *     全部接口只定义一个方法 encode() 且返回值一致
 *     唯一差异就是参数不同
 * 
*/ public final class Encodeable { private Encodeable() { } // ======= // = 无参 = // ======= public interface Encode { T encode(); } // ======= // = 有参 = // ======= public interface EncodeByParam { T encode(Param param); } public interface EncodeByParam2 { T encode( Param param, Param2 param2 ); } public interface EncodeByParam3 { T encode( Param param, Param2 param2, Param3 param3 ); } public interface EncodeByParamArgs { T encode(Param... args); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy