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 Flags
createFromValue
(int flagValue) boolean
except
(int... flags) Removes the provided flags from the current value.int
boolean
hasFlag
(int flag) static boolean
hasFlag
(int value, int flag) int
hashCode()
static Flags
none()
static Flags
of
(int... flags) or
(int... flags) int
rawValue()
setFlag
(int flag, boolean on) static int
setFlag
(int value, int flag, boolean on) void
setRawValue
(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
-