FlagTerm (Java EE 5)

Java EE API


javax.mail.search Class FlagTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.FlagTerm
All Implemented Interfaces:
Serializable

public final class FlagTerm
extends SearchTerm

Extends: SearchTerm

此类实现 Message Flag 的比较。
英文文档:

This class implements comparisons for Message Flags.

Author:
Bill Shannon, John Mani
See Also:
Serialized Form

Field Summary
protected  Flags
protected  boolean
 
Constructor Summary
 
Method Summary
 boolean
 Flags
 boolean
 int
 boolean
 
Methods inherited from class java.lang.Object
 

Field Detail

英文文档:

set

protected boolean set
Indicates whether to test for the presence or absence of the specified Flag. If true, then test whether all the specified flags are present, else test whether all the specified flags are absent.


英文文档:

flags

protected Flags flags
Flags object containing the flags to test.

Constructor Detail

public FlagTerm(Flags flags, boolean set)
构造方法。
flags 包含要检查的标志的 Flag 对象
set 要检查的标志设置
英文文档:

FlagTerm

public FlagTerm(Flags flags,
                boolean set)
Constructor.

Parameters:
flags - Flags object containing the flags to check for
set - the flag setting to check for

Method Detail

public Flags getFlags()
返回要测试的 Flag。
英文文档:

getFlags

public Flags getFlags()
Return the Flags to test.


public boolean getTestSet()
如果正在测试是否设置了标志,返回 true。
英文文档:

getTestSet

public boolean getTestSet()
Return true if testing whether the flags are set.


public boolean match(Message msg)
比较方法。
msg 标志比较将应用于此 Message
return 如果比较成功,则返回 true;否则返回 false。
英文文档:

match

public boolean match(Message msg)
The comparison method.

Specified by:
match in class SearchTerm
Parameters:
msg - The flag comparison is applied to this Message
Returns:
true if the comparson succeeds, otherwise false.

public boolean equals(Object obj)
相等性比较。
英文文档:

equals

public boolean equals(Object obj)
Equality comparison.

Overrides:
equals in class Object

public int hashCode()
计算此对象的 hashCode。
英文文档:

hashCode

public int hashCode()
Compute a hashCode for this object.

Overrides:
hashCode in class Object


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!