Class StringComparator

java.lang.Object
com.ezylang.evalex.functions.AbstractFunction
me.hsgamer.hscore.expression.StringComparator
All Implemented Interfaces:
com.ezylang.evalex.functions.FunctionIfc
Direct Known Subclasses:
Equals, EqualsIgnoreCase, MatchPattern

public abstract class StringComparator extends com.ezylang.evalex.functions.AbstractFunction
The String Comparator
  • Field Summary

    Fields inherited from class com.ezylang.evalex.functions.AbstractFunction

    MINUS_ONE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    compare(@NotNull String s1, @NotNull String s2)
    Compare the two strings
    com.ezylang.evalex.data.EvaluationValue
    evaluate(com.ezylang.evalex.Expression expression, com.ezylang.evalex.parser.Token token, com.ezylang.evalex.data.EvaluationValue... evaluationValues)
     

    Methods inherited from class com.ezylang.evalex.functions.AbstractFunction

    getFunctionParameterDefinitions, hasVarArgs, validatePreEvaluation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.ezylang.evalex.functions.FunctionIfc

    getCountOfNonVarArgParameters, isParameterLazy
  • Constructor Details

    • StringComparator

      public StringComparator()
  • Method Details

    • compare

      public abstract boolean compare(@NotNull @NotNull String s1, @NotNull @NotNull String s2)
      Compare the two strings
      Parameters:
      s1 - the 1st string
      s2 - the 2nd string
      Returns:
      the result
    • evaluate

      public com.ezylang.evalex.data.EvaluationValue evaluate(com.ezylang.evalex.Expression expression, com.ezylang.evalex.parser.Token token, com.ezylang.evalex.data.EvaluationValue... evaluationValues)