Package me.hsgamer.hscore.expression
Class StringComparator
java.lang.Object
com.udojava.evalex.AbstractLazyFunction
me.hsgamer.hscore.expression.StringComparator
- All Implemented Interfaces:
com.udojava.evalex.LazyFunction
- Direct Known Subclasses:
Contains,EndsWith,Equals,EqualsIgnoreCase,MatchPattern,StartsWith
public abstract class StringComparator
extends com.udojava.evalex.AbstractLazyFunction
The String Comparator
-
Field Summary
Fields inherited from class com.udojava.evalex.AbstractLazyFunction
booleanFunction, name, numParams -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.udojava.evalex.AbstractLazyFunction
getName, getNumParams, isBooleanFunction, numParamsVaries
-
Constructor Details
-
StringComparator
Create new comparator- Parameters:
name- the prefix of the comparator
-
-
Method Details
-
compare
Compare the two strings- Parameters:
s1- the 1st strings2- the 2nd string- Returns:
- the result
-
lazyEval
@NotNull public @NotNull com.udojava.evalex.Expression.LazyNumber lazyEval(@NotNull @NotNull List<com.udojava.evalex.Expression.LazyNumber> lazyParams)
-