cloud-etl-rule/lib/com/muyu/rule/common/basic/handler/DataEngineValueHandler.java

38 lines
761 B
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.muyu.rule.common.basic.handler;
import com.muyu.common.core.text.Convert;
import com.muyu.common.domain.DataValue;
/**
* @Author张承志
* @Packagecom.muyu.rule.server.basic.handler
* @Projectcloud-etl-rule
* @name数据值作用域
* @Date2024/8/29 14:35
*/
public class DataEngineValueHandler {
public static void set(DataValue dataValue){
DataEngineHandler.set(dataValue);
}
public static DataValue get(){
return DataEngineHandler.get();
}
public static void remove(){
DataEngineHandler.remove();
}
public static Object getValue(){
return get().getValue();
}
public static Integer getInt(){
return Convert.toInt(getValue(),null);
}
}