package com.changhong.epc.rely.api.tool.power.function;
|
|
import com.googlecode.aviator.runtime.type.AviatorBoolean;
|
import com.googlecode.aviator.runtime.type.AviatorObject;
|
|
import java.util.Map;
|
|
public class Equals extends ShowButtonAbstractFunction {
|
|
@Override
|
public AviatorObject call(Map<String, Object> env, AviatorObject arg1, AviatorObject arg2) {
|
return AviatorBoolean.valueOf(
|
getMainInfo(env, arg1.stringValue(env)).equalsIgnoreCase(arg2.stringValue(env))
|
);
|
}
|
|
@Override
|
public String getName() {
|
return "equals";
|
}
|
}
|