Class SentDateTerm

  • All Implemented Interfaces:
    java.io.Serializable

    public final class SentDateTerm
    extends DateTerm
    A comparison of message sent dates.
    Version:
    1.4
    Author:
    Chris Burdess
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SentDateTerm​(int comparison, java.util.Date date)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      boolean match​(Message msg)
      Returns true only if the given message's sent date matches the specified date using the specified operator.
      • Methods inherited from class java.lang.Object

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

      • SentDateTerm

        public SentDateTerm​(int comparison,
                            java.util.Date date)
        Constructor.
        Parameters:
        comparison - the comparison operator
        date - the date for comparison
    • Method Detail

      • match

        public boolean match​(Message msg)
        Returns true only if the given message's sent date matches the specified date using the specified operator.
        Specified by:
        match in class SearchTerm
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class DateTerm