
top.jfunc.common.utils.local.NormalInfoHolderUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils Show documentation
Show all versions of utils Show documentation
common utils like IOUtil,StrUtil,HoldProcessor.etc.
package top.jfunc.common.utils.local;
/**
* 任意类型值的工具类
* @author xiongshiyan at 2017/12/27
*/
public class NormalInfoHolderUtil {
private static final InfoHolder INFO_HOLDER = new InfoHolder();
@SuppressWarnings("unchecked")
public static void set(T object){
INFO_HOLDER.set(object);
}
@SuppressWarnings("unchecked")
public static T get(){
return (T) INFO_HOLDER.get();
}
public static void clear(){
INFO_HOLDER.clear();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy