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

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

package dev.utils.common.able;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy