Class CalculateService


  • public final class CalculateService
    extends Object
    Static class that are in charge of analyzed the filter and matcher.
    • Method Detail

      • contains

        public static boolean contains​(Pattern patternValue,
                                       String referenceValue,
                                       String currentValue)
        check if the current value contains the patternValue or the referenceValue
        Parameters:
        patternValue - pattern
        referenceValue - reference value
        currentValue - current value
        Returns:
        boolean value for contains check
      • equal

        public static boolean equal​(Pattern patternValue,
                                    String referenceValue,
                                    String currentValue)
        check if the current value is equal the patternValue or the referenceValue
        Parameters:
        patternValue - pattern
        referenceValue - reference value
        currentValue - current value
        Returns:
        boolean value for equal check
      • startsWith

        public static boolean startsWith​(Pattern patternValue,
                                         String referenceValue,
                                         String currentValue)
        check if the current value starts with the patternValue or the referenceValue
        Parameters:
        patternValue - pattern
        referenceValue - reference value
        currentValue - current value
        Returns:
        boolean value for startsWith check
      • endsWith

        public static boolean endsWith​(Pattern patternValue,
                                       String referenceValue,
                                       String currentValue)
        check if the current value ends with the patternValue or the referenceValue
        Parameters:
        patternValue - pattern
        referenceValue - reference value
        currentValue - current value
        Returns:
        boolean value for endsWith check