Class Conditions


  • public final class Conditions
    extends 
    Conditions factory to search for Live Objects by fields.
    Author:
    Nikita Koksharov
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Condition and​(Condition... conditions)
      Returns "AND" condition for collection of nested conditions
      static Condition  name,  value)
      Returns "EQUALS" condition which restricts property by name to defined value
      static Condition  name,  value)
      Returns "GREATER THAN ON EQUAL" condition which restricts property by name to defined value
      static Condition  name,  value)
      Returns "GREATER THAN" condition which restricts property by name to defined value
      static Condition  name, ... values)
      Returns "IN" condition for property by name and allowed set of values
      static Condition  name, <?> values)
      Returns "IN" condition for property by name and allowed set of values
      static Condition  name,  value)
      Returns "LESS THAN ON EQUAL" condition which restricts property by name to defined value
      static Condition  name,  value)
      Returns "LESS THAN" condition which restricts property by name to defined value
      static Condition or​(Condition... conditions)
      Returns "OR" condition for collection of nested conditions
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • in

        public static  name,
                                   ... values)
        Returns "IN" condition for property by name and allowed set of values
        Parameters:
        name - - name of property
        values - - array of allowed values
        Returns:
        condition
      • in

        public static  name,
                                   <?> values)
        Returns "IN" condition for property by name and allowed set of values
        Parameters:
        name - - name of property
        values - - collection of allowed values
        Returns:
        condition
      • eq

        public static  name,
                                    value)
        Returns "EQUALS" condition which restricts property by name to defined value
        Parameters:
        name - - name of property
        value - - defined value
        Returns:
        condition
      • or

        public static Condition or​(Condition... conditions)
        Returns "OR" condition for collection of nested conditions
        Parameters:
        conditions - - nested condition objects
        Returns:
        condition
      • and

        public static Condition and​(Condition... conditions)
        Returns "AND" condition for collection of nested conditions
        Parameters:
        conditions - - nested condition objects
        Returns:
        condition
      • gt

        public static  name,
                                    value)
        Returns "GREATER THAN" condition which restricts property by name to defined value
        Parameters:
        name - - name of property
        value - - defined value
        Returns:
        condition
      • lt

        public static  name,
                                    value)
        Returns "LESS THAN" condition which restricts property by name to defined value
        Parameters:
        name - - name of property
        value - - defined value
        Returns:
        condition
      • ge

        public static  name,
                                    value)
        Returns "GREATER THAN ON EQUAL" condition which restricts property by name to defined value
        Parameters:
        name - - name of property
        value - - defined value
        Returns:
        condition
      • le

        public static  name,
                                    value)
        Returns "LESS THAN ON EQUAL" condition which restricts property by name to defined value
        Parameters:
        name - - name of property
        value - - defined value
        Returns:
        condition