|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.mail.search Class FlagTerm
java.lang.Objectjavax.mail.search.SearchTerm
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 |
flags
Flags object containing the flags to test. |
protected boolean |
set
Indicates whether to test for the presence or absence of the specified Flag. |
| Constructor Summary | |
|---|---|
FlagTerm(Flags flags,
boolean set)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Equality comparison. |
Flags |
getFlags()
Return the Flags to test. |
boolean |
getTestSet()
Return true if testing whether the flags are set. |
int |
hashCode()
Compute a hashCode for this object. |
boolean |
match(Message msg)
The comparison method. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 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 forset- 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:
matchin classSearchTerm
- 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)
public int
hashCode()
计算此对象的 hashCode。
英文文档:
hashCode
public int hashCode()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!
