commit | author | age
|
a18bfa
|
1 |
package com.changhong.epc.rely.api.tool.power.function; |
Z |
2 |
|
|
3 |
import com.googlecode.aviator.runtime.type.AviatorBoolean; |
|
4 |
import com.googlecode.aviator.runtime.type.AviatorObject; |
|
5 |
|
|
6 |
import java.util.Map; |
|
7 |
|
|
8 |
public class Equals extends ShowButtonAbstractFunction { |
|
9 |
|
|
10 |
@Override |
|
11 |
public AviatorObject call(Map<String, Object> env, AviatorObject arg1, AviatorObject arg2) { |
|
12 |
return AviatorBoolean.valueOf( |
|
13 |
getMainInfo(env, arg1.stringValue(env)).equalsIgnoreCase(arg2.stringValue(env)) |
|
14 |
); |
|
15 |
} |
|
16 |
|
|
17 |
@Override |
|
18 |
public String getName() { |
|
19 |
return "equals"; |
|
20 |
} |
|
21 |
} |