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 Summary
Constructors -
Method Summary
Modifier 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
-
Flags
public Flags() -
Flags
public Flags(int... flags)
-
-
Method Details
-
createFromValue
-
of
-
none
-
hasFlag
public boolean hasFlag(int flag) -
hasFlag
public static boolean hasFlag(int value, int flag) -
setFlag
public static int setFlag(int value, int flag, boolean on) -
setFlag
-
and
-
and
-
or
-
or
-
except
Removes the provided flags from the current value. -
rawValue
public int rawValue() -
getRawValue
public int getRawValue() -
setRawValue
public void setRawValue(int value) -
equals
-
hashCode
public int hashCode() -
clone
-
toString
-