Class CompositeExpression.Helper

  • Enclosing class:
    CompositeExpression

    public static class CompositeExpression.Helper
    extends java.lang.Object
    A class with static helper methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      Helper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CompositeExpression eq​(Version version)
      Creates a CompositeExpression with an underlying Equal expression.
      static CompositeExpression eq​(java.lang.String version)
      Creates a CompositeExpression with an underlying Equal expression.
      static CompositeExpression gt​(Version version)
      Creates a CompositeExpression with an underlying Greater expression.
      static CompositeExpression gt​(java.lang.String version)
      Creates a CompositeExpression with an underlying Greater expression.
      static CompositeExpression gte​(Version version)
      Creates a CompositeExpression with an underlying GreaterOrEqual expression.
      static CompositeExpression gte​(java.lang.String version)
      Creates a CompositeExpression with an underlying GreaterOrEqual expression.
      static CompositeExpression lt​(Version version)
      Creates a CompositeExpression with an underlying Less expression.
      static CompositeExpression lt​(java.lang.String version)
      Creates a CompositeExpression with an underlying Less expression.
      static CompositeExpression lte​(Version version)
      Creates a CompositeExpression with an underlying LessOrEqual expression.
      static CompositeExpression lte​(java.lang.String version)
      Creates a CompositeExpression with an underlying LessOrEqual expression.
      static CompositeExpression neq​(Version version)
      Creates a CompositeExpression with an underlying NotEqual expression.
      static CompositeExpression neq​(java.lang.String version)
      Creates a CompositeExpression with an underlying NotEqual expression.
      static CompositeExpression not​(Expression expr)
      Creates a CompositeExpression with an underlying Not expression.
      • Methods inherited from class java.lang.Object

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

      • Helper

        public Helper()
    • Method Detail

      • not

        public static CompositeExpression not​(Expression expr)
        Creates a CompositeExpression with an underlying Not expression.
        Parameters:
        expr - an Expression to negate
        Returns:
        a newly created CompositeExpression
      • eq

        public static CompositeExpression eq​(Version version)
        Creates a CompositeExpression with an underlying Equal expression.
        Parameters:
        version - a Version to check for equality
        Returns:
        a newly created CompositeExpression
      • eq

        public static CompositeExpression eq​(java.lang.String version)
        Creates a CompositeExpression with an underlying Equal expression.
        Parameters:
        version - a Version string to check for equality
        Returns:
        a newly created CompositeExpression
        Throws:
        java.lang.IllegalArgumentException - if the input string is NULL or empty
        ParseException - when invalid version string is provided
        UnexpectedCharacterException - is a special case of ParseException
      • neq

        public static CompositeExpression neq​(Version version)
        Creates a CompositeExpression with an underlying NotEqual expression.
        Parameters:
        version - a Version to check for non-equality
        Returns:
        a newly created CompositeExpression
      • neq

        public static CompositeExpression neq​(java.lang.String version)
        Creates a CompositeExpression with an underlying NotEqual expression.
        Parameters:
        version - a Version string to check for non-equality
        Returns:
        a newly created CompositeExpression
        Throws:
        java.lang.IllegalArgumentException - if the input string is NULL or empty
        ParseException - when invalid version string is provided
        UnexpectedCharacterException - is a special case of ParseException
      • gt

        public static CompositeExpression gt​(Version version)
        Creates a CompositeExpression with an underlying Greater expression.
        Parameters:
        version - a Version to compare with
        Returns:
        a newly created CompositeExpression
      • gt

        public static CompositeExpression gt​(java.lang.String version)
        Creates a CompositeExpression with an underlying Greater expression.
        Parameters:
        version - a Version string to compare with
        Returns:
        a newly created CompositeExpression
        Throws:
        java.lang.IllegalArgumentException - if the input string is NULL or empty
        ParseException - when invalid version string is provided
        UnexpectedCharacterException - is a special case of ParseException
      • gte

        public static CompositeExpression gte​(Version version)
        Creates a CompositeExpression with an underlying GreaterOrEqual expression.
        Parameters:
        version - a Version to compare with
        Returns:
        a newly created CompositeExpression
      • gte

        public static CompositeExpression gte​(java.lang.String version)
        Creates a CompositeExpression with an underlying GreaterOrEqual expression.
        Parameters:
        version - a Version string to compare with
        Returns:
        a newly created CompositeExpression
        Throws:
        java.lang.IllegalArgumentException - if the input string is NULL or empty
        ParseException - when invalid version string is provided
        UnexpectedCharacterException - is a special case of ParseException
      • lt

        public static CompositeExpression lt​(Version version)
        Creates a CompositeExpression with an underlying Less expression.
        Parameters:
        version - a Version to compare with
        Returns:
        a newly created CompositeExpression
      • lt

        public static CompositeExpression lt​(java.lang.String version)
        Creates a CompositeExpression with an underlying Less expression.
        Parameters:
        version - a Version string to compare with
        Returns:
        a newly created CompositeExpression
        Throws:
        java.lang.IllegalArgumentException - if the input string is NULL or empty
        ParseException - when invalid version string is provided
        UnexpectedCharacterException - is a special case of ParseException
      • lte

        public static CompositeExpression lte​(Version version)
        Creates a CompositeExpression with an underlying LessOrEqual expression.
        Parameters:
        version - a Version to compare with
        Returns:
        a newly created CompositeExpression
      • lte

        public static CompositeExpression lte​(java.lang.String version)
        Creates a CompositeExpression with an underlying LessOrEqual expression.
        Parameters:
        version - a Version string to compare with
        Returns:
        a newly created CompositeExpression
        Throws:
        java.lang.IllegalArgumentException - if the input string is NULL or empty
        ParseException - when invalid version string is provided
        UnexpectedCharacterException - is a special case of ParseException