public class StatusFlag extends AbstractBasicStatusFlag implements BitFlag
DISABLED, ENABLED
Constructor and Description |
---|
StatusFlag(int p,
java.lang.String basetag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BitMask |
clearIn(BitMask mask)
Clear this flag in the given bit mask.
|
java.lang.String |
getDescription(BitMask mask)
Get the internationalized description of this flag depending
whether it is set in the given value or not, using the default locale.
|
java.lang.String |
getDescription(BitMask mask,
java.util.Locale locale)
Get the internationalized description of this flag depending
whether it is set or not.
|
java.lang.String |
getI18nTag(BitMask mask)
Get the i18n tag of this flag depending
whether it is set in the given value or not.
|
boolean |
isSetIn(BitMask mask)
Is this flag set in the given mask?
|
BitMask |
setIn(BitMask mask)
Set this flag in the given bit mask.
|
BitMask |
toBitMask()
Convert this flag into a bit mask.
|
getBaseTag, getDescription, getDescription, getI18nTag
public StatusFlag(int p, @NotNull java.lang.String basetag)
p
- power of bit (0 to 31)basetag
- i18n tag start. Depending on the value of the flag this will be expandedpublic java.lang.String getI18nTag(@NotNull BitMask mask)
mask
- bit mask valuepublic java.lang.String getDescription(@NotNull BitMask mask)
mask
- bit mask valuepublic java.lang.String getDescription(@NotNull BitMask mask, java.util.Locale locale)
mask
- bit mask valuelocale
- locale to use