Methods Summary |
---|
public boolean | eval()
if (arg1 == null || arg2 == null) {
throw new BuildException("both arg1 and arg2 are required in "
+ "equals");
}
if (trim) {
arg1 = arg1.trim();
arg2 = arg2.trim();
}
return caseSensitive ? arg1.equals(arg2) : arg1.equalsIgnoreCase(arg2);
|
public void | setArg1(java.lang.String a1)Set the first string
arg1 = a1;
|
public void | setArg2(java.lang.String a2)Set the second string
arg2 = a2;
|
public void | setCasesensitive(boolean b)Should the comparison be case sensitive?
caseSensitive = b;
|
public void | setTrim(boolean b)Should we want to trim the arguments before comparing them?
trim = b;
|