
dev.utils.common.able.Pasteable Maven / Gradle / Ivy
package dev.utils.common.able;
/**
* detail: 通用 Paste 接口
* @author Ttt
*
* 所有通用快捷 Paste 接口定义存储类
* 全部接口只定义一个方法 paste() 且返回值一致
* 唯一差异就是参数不同
*
*/
public final class Pasteable {
private Pasteable() {
}
// =======
// = 无参 =
// =======
public interface Paste {
T paste();
}
// =======
// = 有参 =
// =======
public interface PasteByParam {
T paste(Param param);
}
public interface PasteByParam2 {
T paste(
Param param,
Param2 param2
);
}
public interface PasteByParam3 {
T paste(
Param param,
Param2 param2,
Param3 param3
);
}
public interface PasteByParamArgs {
T paste(Param... args);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy