javax.mail
public class Flags extends Object implements Cloneable, Serializable
Version: 1.3
Nested Class Summary | |
---|---|
static class | Flags.Flag
An individual system flag. |
Constructor Summary | |
---|---|
Flags()
Construct an empty Flags object. | |
Flags(Flags flags)
Construct a Flags object containing the given flags. | |
Flags(Flags.Flag flag)
Construct a Flags object containing the given system flag. | |
Flags(String flag)
Construct a Flags object containing the given user flag. |
Method Summary | |
---|---|
void | add(Flags.Flag flag)
Add the specified system flag. |
void | add(String flag)
Add the specified user flag. |
void | add(Flags flags)
Add all the flags from the specified Flags object. |
Object | clone() |
boolean | contains(Flags.Flag flag)
Indicates whether the specified system flag is set. |
boolean | contains(String flag)
Indicates whether the specified user flag is set. |
boolean | contains(Flags flags)
Indicates whether all the flags in the specified Flags object
are set in this Flags object. |
boolean | equals(Object other) |
Flags.Flag[] | getSystemFlags()
Returns the system flags. |
String[] | getUserFlags()
Returns the user flags. |
int | hashCode() |
void | remove(Flags.Flag flag)
Remove the specified system flag. |
void | remove(String flag)
Remove the specified user flag. |
void | remove(Flags flags)
Remove all flags in the given Flags object from this Flags object. |