Class Between

  • All Implemented Interfaces:
    Serializable

    public class Between
    extends Expression
    Represents the BETWEEN operator.
    Since:
    2.0.0
    Author:
    Rui Vilao (rui.vilao@feedzai.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • Between

        public Between​(Expression column,
                       Expression exp)
        Creates a new instance of Between.
        Parameters:
        column - The column.
        exp - The AND expression.
    • Method Detail

      • not

        public Between not()
        Negates the expression.
        Returns:
        This expression.
      • translate

        public String translate()
        Description copied from class: Expression
        Translates the expression.
        Specified by:
        translate in class Expression
        Returns:
        A translation of the implementing expression.
      • getColumn

        public Expression getColumn()
        Gets the column in the expression.
        Returns:
        The column in the expression.
      • getAnd

        public Expression getAnd()
        Gets the AND expression.
        Returns:
        The AND expression.
      • isNot

        public boolean isNot()
        Checks if the expression is to be negated.
        Returns:
        true if the expression is to be negated, false otherwise.