public interface BitMask
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Enum<T>> |
get(int id,
java.lang.Class<T> instance)
Method returns a EnumSet from given BitMask value.
|
static <T extends java.lang.Enum<T>> |
set(java.util.EnumSet<T> values,
java.lang.Class<T> instance)
Method returns int representing the BitMask value from given EnumSet
|
static <T extends java.lang.Enum<T>> java.util.EnumSet<T> get(int id,
java.lang.Class<T> instance)
T - a Enum.id - represents bit valueinstance - a Class to detect concrete type of Enum.static <T extends java.lang.Enum<T>> int set(java.util.EnumSet<T> values,
java.lang.Class<T> instance)
T - a Enumvalues - A EnumSet that is converted to BitMask valueinstance - a Class to detect concrete type of Enum.java.lang.IllegalArgumentException - if parameter instance is not Enum.