Class DateTerm

    • Field Detail

      • date

        protected Date date
        The date.
    • Constructor Detail

      • DateTerm

        protected DateTerm​(int comparison,
                           Date date)
        Constructor.
        Parameters:
        comparison - the comparison type
        date - The Date to be compared against
    • Method Detail

      • getDate

        public Date getDate()
        Return the Date to compare with.
        Returns:
        the date
      • getComparison

        public int getComparison()
        Return the type of comparison.
        Returns:
        the comparison type
      • match

        protected boolean match​(Date d)
        The date comparison method.
        Parameters:
        d - the date in the constructor is compared with this date
        Returns:
        true if the dates match, otherwise false
      • hashCode

        public int hashCode()
        Compute a hashCode for this object.
        Overrides:
        hashCode in class ComparisonTerm