Class ConditionParser


  • public class ConditionParser
    extends Object
    • Field Detail

      • CONDITIONS_OR_DELIMITER_PATTERN

        public static final String CONDITIONS_OR_DELIMITER_PATTERN
      • CONDITIONS_AND_DELIMITER_PATTERN

        public static final String CONDITIONS_AND_DELIMITER_PATTERN
    • Constructor Detail

      • ConditionParser

        public ConditionParser()
    • Method Detail

      • parseOrsOfAnds

        public static List<List<Condition>> parseOrsOfAnds​(String queryFilter)
        Builder for or separated and conditions.
        Parameters:
        queryFilter - filter to be parsed
        Returns:
        a new list of and queries (list of conditions per query)
      • parseAnds

        public static List<Condition> parseAnds​(String queryFilter)
        Builder for and conditions.
        Parameters:
        queryFilter - filter to be parsed
        Returns:
        a list of and condition objects with checked operation
      • asOrOfAndsPredicate

        public static Predicate asOrOfAndsPredicate​(String queryFilter)
      • asAndPredicate

        public static Predicate asAndPredicate​(String queryFilter)