类 MyFlagTerm

  • 所有已实现的接口:
    Serializable

    public final class MyFlagTerm
    extends javax.mail.search.SearchTerm
    description:是否已读搜索
    作者:
    lzw
    另请参阅:
    序列化表格
    Date:
    2023-04-24 11:34
    • 构造器详细资料

      • MyFlagTerm

        public MyFlagTerm​(javax.mail.Flags flags,
                          boolean set)
        Constructor.
        参数:
        flags - Flags object containing the flags to check for
        set - the flag setting to check for
    • 方法详细资料

      • getFlags

        public javax.mail.Flags getFlags()
        Return the Flags to test.
        返回:
        the flags
      • getTestSet

        public boolean getTestSet()
        Return true if testing whether the flags are set.
        返回:
        true if testing whether the flags are set
      • match

        public boolean match​(javax.mail.Message msg)
        The comparison method.
        指定者:
        match 在类中 javax.mail.search.SearchTerm
        参数:
        msg - The flag comparison is applied to this Message
        返回:
        true if the comparson succeeds, otherwise false.