Class Flags
java.lang.Object
com.inductiveautomation.ignition.common.util.Flags
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AlarmEvalState,- RuntimeQuality,- TagProviderAttributes
General purpose wrapper around an int that lets you easily work with numeric flags.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionand(int... flags) clone()static FlagscreateFromValue(int flagValue) booleanexcept(int... flags) Removes the provided flags from the current value.intbooleanhasFlag(int flag) static booleanhasFlag(int value, int flag) inthashCode()static Flagsnone()static Flagsof(int... flags) or(int... flags) intrawValue()setFlag(int flag, boolean on) static intsetFlag(int value, int flag, boolean on) voidsetRawValue(int value) toString()
- 
Constructor Details- 
Flagspublic Flags()
- 
Flagspublic Flags(int... flags) 
 
- 
- 
Method Details- 
createFromValue
- 
of
- 
none
- 
hasFlagpublic boolean hasFlag(int flag) 
- 
hasFlagpublic static boolean hasFlag(int value, int flag) 
- 
setFlagpublic static int setFlag(int value, int flag, boolean on) 
- 
setFlag
- 
and
- 
and
- 
or
- 
or
- 
exceptRemoves the provided flags from the current value.
- 
rawValuepublic int rawValue()
- 
getRawValuepublic int getRawValue()
- 
setRawValuepublic void setRawValue(int value) 
- 
equals
- 
hashCodepublic int hashCode()
- 
clone
- 
toString
 
-