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