Class StringOperations


  • public class StringOperations
    extends java.lang.Object
    Implements string operations.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • StringOperations

        private StringOperations()
        Prevents external creation.
    • Method Detail

      • equalsIgnoreCase

        private static boolean equalsIgnoreCase​(java.lang.String s1,
                                                java.lang.String s2,
                                                EvaluationAccessor accessor)
        Compares two strings without considering cases using the locale given by the evaluation accessor.
        Parameters:
        s1 - the first string
        s2 - the second string
        accessor - the evaluation accessor carrying the evaluation context / locale
        Returns:
        true for equality, false else
        See Also:
        equalsIgnoreCase(String, String, EvaluationContext)
      • equalsIgnoreCase

        private static boolean equalsIgnoreCase​(java.lang.String s1,
                                                java.lang.String s2,
                                                EvaluationContext context)
        Compares two strings without considering cases using the locale given by the evaluation context.
        Parameters:
        s1 - the first string
        s2 - the second string
        context - the evaluation context carrying the locale
        Returns:
        true for equality, false else
      • register

        public static final void register()
        Registers the defined operations.