Class CalculateService


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean contains​(java.util.regex.Pattern patternValue, java.lang.String referenceValue, java.lang.String currentValue)
      check if the current value contains the patternValue or the referenceValue
      static boolean endsWith​(java.util.regex.Pattern patternValue, java.lang.String referenceValue, java.lang.String currentValue)
      check if the current value ends with the patternValue or the referenceValue
      static boolean equal​(java.util.regex.Pattern patternValue, java.lang.String referenceValue, java.lang.String currentValue)
      check if the current value is equal the patternValue or the referenceValue
      static boolean startsWith​(java.util.regex.Pattern patternValue, java.lang.String referenceValue, java.lang.String currentValue)
      check if the current value starts with the patternValue or the referenceValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • contains

        public static boolean contains​(java.util.regex.Pattern patternValue,
                                       java.lang.String referenceValue,
                                       java.lang.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​(java.util.regex.Pattern patternValue,
                                    java.lang.String referenceValue,
                                    java.lang.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​(java.util.regex.Pattern patternValue,
                                         java.lang.String referenceValue,
                                         java.lang.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​(java.util.regex.Pattern patternValue,
                                       java.lang.String referenceValue,
                                       java.lang.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